mirror of https://github.com/BOINC/boinc.git
SCR: Remove unused code from Mac Screensaver.
This commit is contained in:
parent
38adc14676
commit
1c9c8873d7
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue