Bug 118519

Summary: Remove some dead code from WebNSURLExtras _web_hostString
Product: WebKit Reporter: Jessie Berlin <jberlin>
Component: WebKit Misc.Assignee: Jessie Berlin <jberlin>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, jberlin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Jessie Berlin 2013-07-09 15:59:00 PDT
- (NSString *)_web_hostString
{
    NSData *data = [self _web_hostData];
    if (!data) {
        data = [NSData data];
    }
    return [[[NSString alloc] initWithData:[self _web_hostData] encoding:NSUTF8StringEncoding] autorelease];
}

data isn’t ever used and initWithData:encoding does not throw an exception when data is nil, so we should just remove data.
Comment 1 Jessie Berlin 2013-07-09 16:04:22 PDT
Created attachment 206356 [details]
Patch
Comment 2 Jessie Berlin 2013-07-10 08:54:22 PDT
Comment on attachment 206356 [details]
Patch

Committed in http://trac.webkit.org/changeset/152536