Remove unused

This commit is contained in:
John Firebaugh
2014-12-03 13:42:02 -08:00
parent 21b4f8c501
commit 10ebcbca93
2 changed files with 0 additions and 15 deletions

View File

@@ -14,7 +14,6 @@ class SQLiteStore;
class CachingHTTPFileSource : public FileSource {
public:
CachingHTTPFileSource(uv_loop_t*, const std::string &path_);
CachingHTTPFileSource(const std::string &path_);
~CachingHTTPFileSource();

View File

@@ -9,20 +9,6 @@
namespace mbgl {
CachingHTTPFileSource::CachingHTTPFileSource(uv_loop_t* loop_, const std::string &path_)
: thread_id(uv_thread_self()),
path(path_),
store(!path.empty() ? util::ptr<SQLiteStore>(new SQLiteStore(loop_, path)) : nullptr),
loop(loop_),
queue(new uv_messenger_t) {
uv_messenger_init(loop, queue, [](void *ptr) {
std::unique_ptr<std::function<void()>> fn { reinterpret_cast<std::function<void()> *>(ptr) };
(*fn)();
});
uv_unref((uv_handle_t *)&queue->async);
}
CachingHTTPFileSource::CachingHTTPFileSource(const std::string &path_)
: path(path_) {}