https://bugs.webkit.org/show_bug.cgi?id=80218
Reviewed by Anders Carlsson.
* WebCore.order:
* platform/KURL.cpp:
* platform/KURL.h:
(WebCore):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@109672
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2012-03-03 Benjamin Poulain <benjamin@webkit.org>
+ Remove the unused function WebCore::protocolIsInHTTPFamily()
+ https://bugs.webkit.org/show_bug.cgi?id=80218
+
+ Reviewed by Anders Carlsson.
+
+ * WebCore.order:
+ * platform/KURL.cpp:
+ * platform/KURL.h:
+ (WebCore):
+
+2012-03-03 Benjamin Poulain <benjamin@webkit.org>
+
Implement the basis of KURLWTFURL
https://bugs.webkit.org/show_bug.cgi?id=79600
__ZN7WebCore12IconDatabase8importedEv
__ZN7WebCore12IconDatabase16performURLImportEv
__ZN7WebCore15SQLiteStatement13getColumnTextEi
-__ZN7WebCore22protocolIsInHTTPFamilyERKN3WTF6StringE
__ZN7WebCore13PageURLRecordC1ERKN3WTF6StringE
__ZN7WebCore12IconDatabase21getOrCreateIconRecordERKN3WTF6StringE
__ZN7WebCore10IconRecordC1ERKN3WTF6StringE
return "";
}
-bool protocolIsInHTTPFamily(const String& url)
-{
- unsigned length = url.length();
- const UChar* characters = url.characters();
- return length > 4
- && isLetterMatchIgnoringCase(characters[0], 'h')
- && isLetterMatchIgnoringCase(characters[1], 't')
- && isLetterMatchIgnoringCase(characters[2], 't')
- && isLetterMatchIgnoringCase(characters[3], 'p')
- && (characters[4] == ':'
- || (isLetterMatchIgnoringCase(characters[4], 's') && length > 5 && characters[5] == ':'));
-}
-
}
// This is especially important because valid javascript URLs are not necessarily considered valid by KURL.
bool protocolIs(const String& url, const char* protocol);
-bool protocolIsInHTTPFamily(const String& url);
bool protocolIsJavaScript(const String& url);
bool isDefaultPortForProtocol(unsigned short port, const String& protocol);