Remove the unused function WebCore::protocolIsInHTTPFamily()
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 4 Mar 2012 05:04:16 +0000 (05:04 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 4 Mar 2012 05:04:16 +0000 (05:04 +0000)
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

Source/WebCore/ChangeLog
Source/WebCore/WebCore.order
Source/WebCore/platform/KURL.cpp
Source/WebCore/platform/KURL.h

index 9058d01..51b1771 100644 (file)
@@ -1,5 +1,17 @@
 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
 
index 6582fb4..0cbed9e 100644 (file)
@@ -78,7 +78,6 @@ __ZN7WebCore12IconDatabase21wasExcludedFromBackupEv
 __ZN7WebCore12IconDatabase8importedEv
 __ZN7WebCore12IconDatabase16performURLImportEv
 __ZN7WebCore15SQLiteStatement13getColumnTextEi
-__ZN7WebCore22protocolIsInHTTPFamilyERKN3WTF6StringE
 __ZN7WebCore13PageURLRecordC1ERKN3WTF6StringE
 __ZN7WebCore12IconDatabase21getOrCreateIconRecordERKN3WTF6StringE
 __ZN7WebCore10IconRecordC1ERKN3WTF6StringE
index 1c001c6..ad5feea 100644 (file)
@@ -1888,17 +1888,4 @@ String mimeTypeFromDataURL(const String& url)
     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] == ':'));
-}
-
 }
index 2675b48..3cba090 100644 (file)
@@ -282,7 +282,6 @@ const KURL& blankURL();
 // 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);