summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2016-03-07 22:10:41 -0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2016-03-08 10:31:01 -0300
commitb8b283588f59db539715217aba164a380e053ea5 (patch)
tree4493e6f239732f29c7f5cdd57150874b21a8b273 /include/mbgl
parentfa7c40c37fc2078b181f77afc808fdc4cd1baae9 (diff)
downloadqtlocation-mapboxgl-b8b283588f59db539715217aba164a380e053ea5.tar.gz
[core] Remove goOffline() from DefaultFileSource
Use the newly added NetworkStatus::Set().
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/storage/default_file_source.hpp1
-rw-r--r--include/mbgl/storage/network_status.hpp4
2 files changed, 2 insertions, 3 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index 93d6297651..dd67cff9b8 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -102,7 +102,6 @@ public:
// For testing only.
void put(const Resource&, const Response&);
- void goOffline();
class Impl;
diff --git a/include/mbgl/storage/network_status.hpp b/include/mbgl/storage/network_status.hpp
index 4202793661..d5ea13e07e 100644
--- a/include/mbgl/storage/network_status.hpp
+++ b/include/mbgl/storage/network_status.hpp
@@ -18,8 +18,8 @@ public:
Offline,
};
- Status Get();
- void Set(Status);
+ static Status Get();
+ static void Set(Status);
static void Reachable();