diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-15 12:40:53 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-01-21 11:22:11 -0800 |
commit | c33ed50c98c57ce2f2cf3b971bcf72c4208bf120 (patch) | |
tree | a45369f797029fa6a7a05511e3c4b051bede9a2a /include/mbgl | |
parent | 1766d7dcbf9482ceac9bff37e0f7f5a4c60b9123 (diff) | |
download | qtlocation-mapboxgl-c33ed50c98c57ce2f2cf3b971bcf72c4208bf120.tar.gz |
[core] Eliminate Response::stale and inline Response::isExpired()
Response::isExpired() had subtle and potentially confusing behavior around Seconds::zero(). It's best to inline it and comment why.
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/storage/response.hpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp index 532a91da97..a7a200c53a 100644 --- a/include/mbgl/storage/response.hpp +++ b/include/mbgl/storage/response.hpp @@ -14,16 +14,11 @@ public: Response(const Response&); Response& operator=(const Response&); - bool isExpired() const; - public: class Error; // When this object is empty, the response was successful. std::unique_ptr<const Error> error; - // Stale responses are fetched from cache and are expired. - bool stale = false; - // This is set to true for 304 Not Modified responses. bool notModified = false; |