From 1c9c8873d7247d8fc1a79b2adbba6aed8cd3812d Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 9 Mar 2015 02:53:19 -0700 Subject: [PATCH] SCR: Remove unused code from Mac Screensaver. --- clientscr/Mac_Saver_Module.h | 1 - clientscr/Mac_Saver_ModuleView.m | 2 -- clientscr/mac_saver_module.cpp | 15 --------------- 3 files changed, 18 deletions(-) diff --git a/clientscr/Mac_Saver_Module.h b/clientscr/Mac_Saver_Module.h index d54d15a0dc..86e12067b1 100644 --- a/clientscr/Mac_Saver_Module.h +++ b/clientscr/Mac_Saver_Module.h @@ -43,7 +43,6 @@ bool getShow_default_ss_first(); double getGFXDefaultPeriod(); double getGFXSciencePeriod(); double getGGFXChangePeriod(); -bool validateNumericString(CFStringRef s); void setShow_default_ss_first(bool value); void setGFXDefaultPeriod(double value); void setGFXSciencePeriod(double value); diff --git a/clientscr/Mac_Saver_ModuleView.m b/clientscr/Mac_Saver_ModuleView.m index b2aa705321..55c21abde3 100644 --- a/clientscr/Mac_Saver_ModuleView.m +++ b/clientscr/Mac_Saver_ModuleView.m @@ -542,7 +542,6 @@ int signof(float x) { NSScanner *scanner, *scanner2; -print_to_log_file(" Entered closeSheetSave"); // get the defaults ScreenSaverDefaults *defaults = [ ScreenSaverDefaults defaultsForModuleWithName:mBundleID ]; @@ -600,7 +599,6 @@ Bad: [alert setMessageText:@"Please enter a number between 0 and 999."]; [alert setAlertStyle:NSCriticalAlertStyle]; [alert beginSheetModalForWindow:mConfigureSheet modalDelegate:self didEndSelector:nil contextInfo:nil]; -print_to_log_file("called beginSheetModalForWindow"); } // Called when the user clicked the CANCEL button diff --git a/clientscr/mac_saver_module.cpp b/clientscr/mac_saver_module.cpp index 4987d8b073..80060380ef 100644 --- a/clientscr/mac_saver_module.cpp +++ b/clientscr/mac_saver_module.cpp @@ -221,21 +221,6 @@ double getDTime() { } -bool validateNumericString(CFStringRef s) { - CFIndex i; - CFRange range, result; - CFIndex len = CFStringGetLength(s); - CFCharacterSetRef theSet = CFCharacterSetGetPredefined(kCFCharacterSetDecimalDigit); - - for (i=0; i