RESOLVED FIXED 118519
Remove some dead code from WebNSURLExtras _web_hostString
https://bugs.webkit.org/show_bug.cgi?id=118519
Summary Remove some dead code from WebNSURLExtras _web_hostString
Jessie Berlin
Reported 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.
Attachments
Patch (1.23 KB, patch)
2013-07-09 16:04 PDT, Jessie Berlin
no flags
Jessie Berlin
Comment 1 2013-07-09 16:04:22 PDT
Jessie Berlin
Comment 2 2013-07-10 08:54:22 PDT
Note You need to log in before you can comment on or make changes to this bug.