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/SPTablesList.m | 43 +++++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 26 deletions(-) (limited to 'Source/SPTablesList.m') diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index 41551114..93ebfe91 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -111,9 +111,6 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; #pragma mark - #pragma mark Initialisation -/** - * Standard init method. Performs various ivar initialisations. - */ - (id)init { if ((self = [super init])) { @@ -136,9 +133,6 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; return self; } -/** - * Standard awakeFromNib method for interface loading. - */ - (void)awakeFromNib { #ifndef SP_REFACTOR @@ -2045,26 +2039,6 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; } #endif -#pragma mark - - -/** - * Standard dealloc method. - */ -- (void)dealloc -{ - [[NSNotificationCenter defaultCenter] removeObserver:self]; - - [tables release]; - [tableTypes release]; -#ifndef SP_REFACTOR - if (isTableListFiltered && filteredTables) [filteredTables release]; - if (isTableListFiltered && filteredTableTypes) [filteredTableTypes release]; -#endif - if (selectedTableName) [selectedTableName release]; - - [super dealloc]; -} - #pragma mark - #pragma mark Private API @@ -2613,4 +2587,21 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; [NSException raise:@"Object of unknown type" format:NSLocalizedString(@"An error occured while renaming. '%@' is of an unknown type.", @"rename error - don't know what type the renamed thing is"), oldTableName]; } +#pragma mark - + +- (void)dealloc +{ + [[NSNotificationCenter defaultCenter] removeObserver:self]; + + [tables release]; + [tableTypes release]; +#ifndef SP_REFACTOR + if (isTableListFiltered && filteredTables) [filteredTables release]; + if (isTableListFiltered && filteredTableTypes) [filteredTableTypes release]; +#endif + if (selectedTableName) [selectedTableName release]; + + [super dealloc]; +} + @end -- cgit v1.2.3