From 9ab31cc5b60bf0e4519c989a3e9d213da50f888d Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 22 Jan 2013 17:14:03 +0000 Subject: Remove useless init and dealloc method comments and perform general tidy up. --- Source/SPConnectionHandler.m | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Source/SPConnectionHandler.m') diff --git a/Source/SPConnectionHandler.m b/Source/SPConnectionHandler.m index 12b59b01..0bbd4409 100644 --- a/Source/SPConnectionHandler.m +++ b/Source/SPConnectionHandler.m @@ -52,7 +52,7 @@ static NSString *SPLocalhostAddress = @"127.0.0.1"; @implementation SPConnectionController (SPConnectionHandler) -/* +/** * Set up the MySQL connection, either through a successful tunnel or directly in the background. */ - (void)initiateMySQLConnection @@ -61,14 +61,18 @@ static NSString *SPLocalhostAddress = @"127.0.0.1"; if (isTestingConnection) { if (sshTunnel) { [progressIndicatorText setStringValue:NSLocalizedString(@"Testing MySQL...", @"MySQL connection test very short status message")]; - } else { + } + else { [progressIndicatorText setStringValue:NSLocalizedString(@"Testing connection...", @"Connection test very short status message")]; } - } else if (sshTunnel) { + } + else if (sshTunnel) { [progressIndicatorText setStringValue:NSLocalizedString(@"MySQL connecting...", @"MySQL connecting very short status message")]; - } else { + } + else { [progressIndicatorText setStringValue:NSLocalizedString(@"Connecting...", @"Generic connecting very short status message")]; } + [progressIndicatorText display]; [connectButton setTitle:NSLocalizedString(@"Cancel", @"cancel button")]; @@ -238,7 +242,7 @@ static NSString *SPLocalhostAddress = @"127.0.0.1"; [pool release]; } -/* +/** * Initiate the SSH connection process. * This should only be called as part of initiateConnection:, and will indirectly * call initiateMySQLConnection if it's successful. @@ -347,7 +351,7 @@ static NSString *SPLocalhostAddress = @"127.0.0.1"; [self addConnectionToDocument]; } -/* +/** * A callback function for the SSH Tunnel setup process - will be called on a connection * state change, allowing connection to fail or proceed as appropriate. If successful, * will call initiateMySQLConnection. @@ -418,7 +422,7 @@ static NSString *SPLocalhostAddress = @"127.0.0.1"; [dbDocument setConnection:mySQLConnection]; } -/* +/** * Ends a connection attempt by stopping the connection animation and * displaying a specified error message. */ -- cgit v1.2.3