diff options
author | stuconnolly <stuart02@gmail.com> | 2012-06-04 08:08:43 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-06-04 08:08:43 +0000 |
commit | 2852fbf643dc63dcec29da2fb9935239d97211cc (patch) | |
tree | d41fcd61ef22f96d8964d17723e4a7f03551b06d /Source | |
parent | a14579f0677e2384a265504b86cd5cfdba0b68e6 (diff) | |
download | sequelpro-2852fbf643dc63dcec29da2fb9935239d97211cc.tar.gz sequelpro-2852fbf643dc63dcec29da2fb9935239d97211cc.tar.bz2 sequelpro-2852fbf643dc63dcec29da2fb9935239d97211cc.zip |
Tidy up.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPServerVariablesController.m | 38 |
1 files 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 <SPMySQL/SPMySQL.h> -@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 |