From 2852fbf643dc63dcec29da2fb9935239d97211cc Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Mon, 4 Jun 2012 08:08:43 +0000 Subject: Tidy up. --- Source/SPServerVariablesController.m | 38 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Source/SPServerVariablesController.m b/Source/SPServerVariablesController.m index 4cb85e5c..47e9f3bf 100644 --- a/Source/SPServerVariablesController.m +++ b/Source/SPServerVariablesController.m @@ -26,9 +26,10 @@ #import "SPServerVariablesController.h" #import "SPDatabaseDocument.h" #import "SPAppController.h" + #import -@interface SPServerVariablesController (PrivateAPI) +@interface SPServerVariablesController () - (void)_getDatabaseServerVariables; - (void)_updateServerVariablesFilterForFilterString:(NSString *)filterString; @@ -266,31 +267,16 @@ } #pragma mark - - -/** - * Dealloc - */ -- (void)dealloc -{ - [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:SPUseMonospacedFonts]; - - [variables release], variables = nil; - - [super dealloc]; -} - -@end - -@implementation SPServerVariablesController (PrivateAPI) +#pragma mark Private API /** * Gets the database's current server variables. */ - (void)_getDatabaseServerVariables { - - // Get processes + // Get variables SPMySQLResult *serverVariables = [connection queryString:@"SHOW VARIABLES"]; + [serverVariables setReturnDataAsStrings:YES]; [variables removeAllObjects]; @@ -393,4 +379,18 @@ } } +#pragma mark - + +/** + * Dealloc + */ +- (void)dealloc +{ + [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:SPUseMonospacedFonts]; + + [variables release], variables = nil; + + [super dealloc]; +} + @end -- cgit v1.2.3