fix redundant methods for getting current URI (bug 337664)

This commit is contained in:
pinkerton%aol.net 2006-06-03 15:24:36 +00:00
Родитель d0b6aeaa7b
Коммит 4f3f255cb7
4 изменённых файлов: 2 добавлений и 8 удалений

Просмотреть файл

@ -1478,7 +1478,7 @@ Otherwise, we return the URL we originally got. Right now this supports .url,
if (action == @selector(sendURL:))
{
NSString* urlString = [[[self getMainWindowBrowserController] getBrowserWrapper] location];
NSString* urlString = [[[self getMainWindowBrowserController] getBrowserWrapper] getCurrentURI];
return ![MainController isBlankURL:urlString];
}

Просмотреть файл

@ -1644,7 +1644,7 @@ enum BWCOpenDest {
[self showSecurityState: [mBrowserView securityState]];
[self updateSiteIcons: [mBrowserView siteIcon] ignoreTyping:NO];
[self updateStatus: [mBrowserView statusString]];
[self updateLocationFields:[mBrowserView location] ignoreTyping:NO];
[self updateLocationFields:[mBrowserView getCurrentURI] ignoreTyping:NO];
}
#pragma mark -

Просмотреть файл

@ -187,7 +187,6 @@ class nsISupportsArray;
- (NSString*)windowTitle;
- (NSString*)pageTitle;
- (NSImage*)siteIcon;
- (NSString*)location;
- (NSString*)statusString;
- (float)loadingProgress;
- (BOOL)popupsBlocked;

Просмотреть файл

@ -301,11 +301,6 @@ static NSString* const kOfflineNotificationName = @"offlineModeChanged";
return mSiteIconImage;
}
- (NSString*)location
{
return [mBrowserView getCurrentURI];
}
- (NSString*)statusString
{
// XXX is this right?