Title: [109672] trunk/Source/WebCore
Revision
109672
Author
[email protected]
Date
2012-03-03 21:04:16 -0800 (Sat, 03 Mar 2012)

Log Message

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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (109671 => 109672)


--- trunk/Source/WebCore/ChangeLog	2012-03-04 03:49:19 UTC (rev 109671)
+++ trunk/Source/WebCore/ChangeLog	2012-03-04 05:04:16 UTC (rev 109672)
@@ -1,5 +1,17 @@
 2012-03-03  Benjamin Poulain  <[email protected]>
 
+        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  <[email protected]>
+
         Implement the basis of KURLWTFURL
         https://bugs.webkit.org/show_bug.cgi?id=79600
 

Modified: trunk/Source/WebCore/WebCore.order (109671 => 109672)


--- trunk/Source/WebCore/WebCore.order	2012-03-04 03:49:19 UTC (rev 109671)
+++ trunk/Source/WebCore/WebCore.order	2012-03-04 05:04:16 UTC (rev 109672)
@@ -78,7 +78,6 @@
 __ZN7WebCore12IconDatabase8importedEv
 __ZN7WebCore12IconDatabase16performURLImportEv
 __ZN7WebCore15SQLiteStatement13getColumnTextEi
-__ZN7WebCore22protocolIsInHTTPFamilyERKN3WTF6StringE
 __ZN7WebCore13PageURLRecordC1ERKN3WTF6StringE
 __ZN7WebCore12IconDatabase21getOrCreateIconRecordERKN3WTF6StringE
 __ZN7WebCore10IconRecordC1ERKN3WTF6StringE

Modified: trunk/Source/WebCore/platform/KURL.cpp (109671 => 109672)


--- trunk/Source/WebCore/platform/KURL.cpp	2012-03-04 03:49:19 UTC (rev 109671)
+++ trunk/Source/WebCore/platform/KURL.cpp	2012-03-04 05:04:16 UTC (rev 109672)
@@ -1888,17 +1888,4 @@
     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] == ':'));
 }
-
-}

Modified: trunk/Source/WebCore/platform/KURL.h (109671 => 109672)


--- trunk/Source/WebCore/platform/KURL.h	2012-03-04 03:49:19 UTC (rev 109671)
+++ trunk/Source/WebCore/platform/KURL.h	2012-03-04 05:04:16 UTC (rev 109672)
@@ -282,7 +282,6 @@
 // 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);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to