[core] Remove ThreadContext::getFileSource; instead thread FileSource through

This commit is contained in:
John Firebaugh
2016-02-18 10:48:51 -08:00
parent d5eb5240f8
commit 7b39ce9521
23 changed files with 79 additions and 80 deletions

View File

@@ -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;