diff options
Diffstat (limited to 'src/mbgl/util/url.cpp')
-rw-r--r-- | src/mbgl/util/url.cpp | 13 |
1 files changed, 0 insertions, 13 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('#'); |