WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jessie Berlin
Comment 1
2013-07-09 16:04:22 PDT
Created
attachment 206356
[details]
Patch
Jessie Berlin
Comment 2
2013-07-10 08:54:22 PDT
Comment on
attachment 206356
[details]
Patch Committed in
http://trac.webkit.org/changeset/152536
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug