From f917e5b1df903ff45b33407b3700da39b20b6c77 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 17 Dec 2010 11:13:43 -0500 Subject: [PATCH] Remove the remote host from the title. --- Source/DebuggerController.m | 2 +- Source/DebuggerProcessor.h | 1 - Source/DebuggerProcessor.m | 12 ------------ 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index 43b71f9..6d09612 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -72,7 +72,7 @@ - (void)awakeFromNib { [[self window] setExcludedFromWindowsMenu:YES]; - [[self window] setTitle:[NSString stringWithFormat:@"GDBp @ %@:%d", [connection remoteHost], [connection port]]]; + [[self window] setTitle:[NSString stringWithFormat:@"MacGDBp @ %d", [connection port]]]; [sourceViewer setDelegate:self]; [stackArrayController setSortDescriptors:[NSArray arrayWithObject:[[[NSSortDescriptor alloc] initWithKey:@"index" ascending:YES] autorelease]]]; self.connection.attached = [attachedCheckbox_ state] == NSOnState; diff --git a/Source/DebuggerProcessor.h b/Source/DebuggerProcessor.h index b736032..9fca3b4 100644 --- a/Source/DebuggerProcessor.h +++ b/Source/DebuggerProcessor.h @@ -73,7 +73,6 @@ // getter - (NSUInteger)port; -- (NSString*)remoteHost; - (BOOL)isConnected; // communication diff --git a/Source/DebuggerProcessor.m b/Source/DebuggerProcessor.m index 0e0e3bb..18fb24b 100644 --- a/Source/DebuggerProcessor.m +++ b/Source/DebuggerProcessor.m @@ -89,18 +89,6 @@ return [connection_ port]; } -/** - * Returns the name of the remote host - */ -- (NSString*)remoteHost -{ - if (![connection_ connected]) - return @"(DISCONNECTED)"; - - // TODO: Either impl or remove. - return @""; -} - /** * Returns whether or not we have an active connection */ -- 2.43.5