From 6d88a23a60bc0a6dc9945bf09a659d15dd827192 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 24 Mar 2016 11:33:09 -0700 Subject: [core] Remove internal threading from OnlineFileRequest There's no need to do the work that OnlineFileRequest does on a separate thread from the DefaultFileSource thread, and having AsyncTasks proxy to other tasks across a thread boundary adds needless complexity. --- include/mbgl/storage/online_file_source.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'include/mbgl/storage') diff --git a/include/mbgl/storage/online_file_source.hpp b/include/mbgl/storage/online_file_source.hpp index b52dce35f0..fd742a54c4 100644 --- a/include/mbgl/storage/online_file_source.hpp +++ b/include/mbgl/storage/online_file_source.hpp @@ -5,10 +5,6 @@ namespace mbgl { -namespace util { -template class Thread; -} // namespace util - class OnlineFileSource : public FileSource { public: OnlineFileSource(); @@ -20,10 +16,10 @@ public: std::unique_ptr request(const Resource&, Callback) override; private: - friend class OnlineFileRequestImpl; + friend class OnlineFileRequest; class Impl; - const std::unique_ptr> thread; + const std::unique_ptr impl; std::string accessToken; }; -- cgit v1.2.1