SCR: Remove unused code from Mac Screensaver.

This commit is contained in:
Charlie Fenton 2015-03-09 02:53:19 -07:00
parent 38adc14676
commit 1c9c8873d7
3 changed files with 0 additions and 18 deletions

View File

@ -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);

View File

@ -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

View File

@ -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<len; i++) {
range = CFRangeMake(i, 1);
if (!CFStringFindCharacterFromSet(s, theSet, range, kCFCompareAnchored, &result))
return false;
}
return true;
}
CScreensaver::CScreensaver() {
struct ss_periods periods;