summaryrefslogtreecommitdiff
path: root/src/mbgl/util/thread_context.cpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-02-18 10:48:51 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-02-18 15:15:24 -0800
commit7b39ce95210ceb6640b3a3399dacd1d0e826ac1f (patch)
treeeb97fdc8a284826d3a3fe9426a8a10f88a654799 /src/mbgl/util/thread_context.cpp
parentd5eb5240f8c35016927e89bf9d186addc09b83fa (diff)
downloadqtlocation-mapboxgl-7b39ce95210ceb6640b3a3399dacd1d0e826ac1f.tar.gz
[core] Remove ThreadContext::getFileSource; instead thread FileSource through
Diffstat (limited to 'src/mbgl/util/thread_context.cpp')
-rw-r--r--src/mbgl/util/thread_context.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mbgl/util/thread_context.cpp b/src/mbgl/util/thread_context.cpp
index 4853388661..a60f2c9ab5 100644
--- a/src/mbgl/util/thread_context.cpp
+++ b/src/mbgl/util/thread_context.cpp
@@ -44,22 +44,6 @@ ThreadPriority ThreadContext::getPriority() {
}
}
-FileSource* ThreadContext::getFileSource() {
- if (current.get() != nullptr) {
- return current.get()->fileSource;
- } else {
- return nullptr;
- }
-}
-
-void ThreadContext::setFileSource(FileSource* fileSource) {
- if (current.get() != nullptr) {
- current.get()->fileSource = fileSource;
- } else {
- throw std::runtime_error("Current thread has no current ThreadContext.");
- }
-}
-
gl::GLObjectStore* ThreadContext::getGLObjectStore() {
if (current.get() != nullptr) {
return current.get()->glObjectStore;