diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-03-21 14:41:08 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-03-28 13:53:19 +0200 |
commit | 68e032e505e23811aec1f6079995709b3d2b9700 (patch) | |
tree | 80296f3dd19cc2855d4d364659d5ee58921ba11b /src/mbgl/util | |
parent | 9b39013ce4c6f98590b80ced425e0a3bcdb3f77f (diff) | |
download | qtlocation-mapboxgl-68e032e505e23811aec1f6079995709b3d2b9700.tar.gz |
[core] Remove private header includes from CLI utilities
Diffstat (limited to 'src/mbgl/util')
-rw-r--r-- | src/mbgl/util/url.cpp | 13 | ||||
-rw-r--r-- | src/mbgl/util/url.hpp | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/mbgl/util/url.cpp b/src/mbgl/util/url.cpp index 3f36bc676f..1f6dab9639 100644 --- a/src/mbgl/util/url.cpp +++ b/src/mbgl/util/url.cpp @@ -66,19 +66,6 @@ std::string percentDecode(const std::string& input) { return decoded; } -// Checks whether the input string contains ://, and the part before it is all alphanumeric ASCII. -bool isURL(const std::string& input) { - auto it = input.begin(); - // First character has to be alphabetic - if (it == input.end() || !isAlphaCharacter(*it++)) return false; - // The remaining characters of the scheme can be alphanumeric, or be one of +.- - while (it != input.end() && isSchemeCharacter(*it)) ++it; - // Check that :// follows - return (it != input.end() && *it++ == ':') && - (it != input.end() && *it++ == '/') && - (it != input.end() && *it++ == '/'); -} - URL::URL(const std::string& str) : query([&]() -> Segment { const auto hashPos = str.find('#'); diff --git a/src/mbgl/util/url.hpp b/src/mbgl/util/url.hpp index e361b07a7c..70fdfd8a36 100644 --- a/src/mbgl/util/url.hpp +++ b/src/mbgl/util/url.hpp @@ -8,7 +8,6 @@ namespace util { std::string percentEncode(const std::string&); std::string percentDecode(const std::string&); -bool isURL(const std::string&); // Class that holds position + lenth pairs for scheme, domain, path + query string of a URL. class URL { |