Title: [152536] trunk/Source/WebKit/mac
Revision
152536
Author
[email protected]
Date
2013-07-10 08:52:47 -0700 (Wed, 10 Jul 2013)

Log Message

Remove some dead code from WebNSURLExtras _web_hostString
https://bugs.webkit.org/show_bug.cgi?id=118519

Reviewed by Anders Carlsson.

* Misc/WebNSURLExtras.mm:
(-[NSURL _web_hostString]):
NSString initWithData:encoding: does not throw an exception when passing nil for the data, so
just delete the code that wasn't being run.

Modified Paths

Diff

Modified: trunk/Source/WebKit/mac/ChangeLog (152535 => 152536)


--- trunk/Source/WebKit/mac/ChangeLog	2013-07-10 14:38:34 UTC (rev 152535)
+++ trunk/Source/WebKit/mac/ChangeLog	2013-07-10 15:52:47 UTC (rev 152536)
@@ -1,3 +1,15 @@
+2013-07-10  Jessie Berlin  <[email protected]>
+
+        Remove some dead code from WebNSURLExtras _web_hostString
+        https://bugs.webkit.org/show_bug.cgi?id=118519
+
+        Reviewed by Anders Carlsson.
+
+        * Misc/WebNSURLExtras.mm:
+        (-[NSURL _web_hostString]):
+        NSString initWithData:encoding: does not throw an exception when passing nil for the data, so
+        just delete the code that wasn't being run.
+
 2013-07-09  Jeremy Noble  <[email protected]>
 
         Reviewed by Simon Fraser.

Modified: trunk/Source/WebKit/mac/Misc/WebNSURLExtras.mm (152535 => 152536)


--- trunk/Source/WebKit/mac/Misc/WebNSURLExtras.mm	2013-07-10 14:38:34 UTC (rev 152535)
+++ trunk/Source/WebKit/mac/Misc/WebNSURLExtras.mm	2013-07-10 15:52:47 UTC (rev 152536)
@@ -264,10 +264,6 @@
 
 - (NSString *)_web_hostString
 {
-    NSData *data = "" _web_hostData];
-    if (!data) {
-        data = "" data];
-    }
     return [[[NSString alloc] initWithData:[self _web_hostData] encoding:NSUTF8StringEncoding] autorelease];
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to