summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-05-07 19:57:12 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-05-13 13:54:16 -0700
commit386be7c0faf20220f1e25b1a29f478519d1e2aa9 (patch)
tree1ed1c4f6f8007111bda59c32c974cfb47c71ec8c /include
parent1d38b636402a6581c491185090f5c81495a07d13 (diff)
downloadqtlocation-mapboxgl-386be7c0faf20220f1e25b1a29f478519d1e2aa9.tar.gz
Remove unused
There are no longer any requests made that don't have a run loop to dispatch back to.
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/environment.hpp1
-rw-r--r--include/mbgl/storage/default_file_source.hpp1
-rw-r--r--include/mbgl/storage/file_source.hpp4
3 files changed, 0 insertions, 6 deletions
diff --git a/include/mbgl/map/environment.hpp b/include/mbgl/map/environment.hpp
index 07554a7a92..d8068187e7 100644
--- a/include/mbgl/map/environment.hpp
+++ b/include/mbgl/map/environment.hpp
@@ -39,7 +39,6 @@ public:
// #############################################################################################
// File request APIs
- void requestAsync(const Resource&, std::function<void(const Response&)>);
Request* request(const Resource&, std::function<void(const Response&)>);
void cancelRequest(Request*);
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index d50d5ddea4..405b04a49c 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -18,7 +18,6 @@ public:
// FileSource API
Request* request(const Resource&, uv_loop_t*, Callback) override;
void cancel(Request*) override;
- void request(const Resource&, Callback) override;
public:
class Impl;
diff --git a/include/mbgl/storage/file_source.hpp b/include/mbgl/storage/file_source.hpp
index 535c41e819..7c6e578a9a 100644
--- a/include/mbgl/storage/file_source.hpp
+++ b/include/mbgl/storage/file_source.hpp
@@ -29,10 +29,6 @@ public:
// You can only cancel a request from the same thread it was created in.
virtual Request* request(const Resource&, uv_loop_t*, Callback) = 0;
virtual void cancel(Request*) = 0;
-
- // These can be called from any thread. The callback will be invoked in an arbitrary other thread.
- // You cannot cancel these requests.
- virtual void request(const Resource&, Callback) = 0;
};
}