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/SPProcessListController.m | 41 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 25 deletions(-) (limited to 'Source/SPProcessListController.m') diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m index ec795116..7540ed43 100644 --- a/Source/SPProcessListController.m +++ b/Source/SPProcessListController.m @@ -66,9 +66,6 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id"; #pragma mark - #pragma mark Initialisation -/** - * Initialisation - */ - (id)init { if ((self = [super initWithWindowNibName:@"DatabaseProcessList"])) { @@ -88,9 +85,6 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id"; return self; } -/** - * Interface initialisation - */ - (void)awakeFromNib { [[self window] setTitle:[NSString stringWithFormat:NSLocalizedString(@"Server Processes on %@", @"server processes window title (var = hostname)"),[[(SPAppController*)[NSApp delegate] frontDocument] name]]]; @@ -133,7 +127,7 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id"; } #pragma mark - -#pragma mark IBAction methods +#pragma mark IB action methods /** * Copies the currently selected process(es) to the pasteboard. @@ -582,24 +576,6 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id"; [self _killAutoRefreshTimer]; } -#pragma mark - - -/** - * Dealloc - */ -- (void)dealloc -{ - [prefs removeObserver:self forKeyPath:SPUseMonospacedFonts]; - - processListThreadRunning = NO; - - [processes release], processes = nil; - - if (autoRefreshTimer) [autoRefreshTimer release], autoRefreshTimer = nil; - - [super dealloc]; -} - #pragma mark - #pragma mark Private API @@ -848,4 +824,19 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id"; [saveProcessesButton setTitle:NSLocalizedString(@"Save View As...", @"save view as button title")]; } +#pragma mark - + +- (void)dealloc +{ + [prefs removeObserver:self forKeyPath:SPUseMonospacedFonts]; + + processListThreadRunning = NO; + + [processes release], processes = nil; + + if (autoRefreshTimer) [autoRefreshTimer release], autoRefreshTimer = nil; + + [super dealloc]; +} + @end -- cgit v1.2.3