Skip to content

Commit

Permalink
Update allsky_common.cpp: remove checks for passed, but not used, set…
Browse files Browse the repository at this point in the history
…tings

allsky.sh now makes sure only settings needed by capture_* are passed to them.
  • Loading branch information
EricClaeys authored Sep 18, 2023
1 parent 8d92334 commit 38c942f
Showing 1 changed file with 0 additions and 102 deletions.
102 changes: 0 additions & 102 deletions src/allsky_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1974,108 +1974,6 @@ bool getCommandLineArguments(config *cg, int argc, char *argv[])
cg->overlay.outlinefont = getBoolean(argv[++i]);
}

// Arguments that may be passed to us but we don't use.
else if (
strcmp(a, "xx_end_xx") == 0 ||
strcmp(a, "daystokeep") == 0 ||
strcmp(a, "daystokeeplocalwebsite") == 0 ||
strcmp(a, "daystokeepremotewebsite") == 0 ||
strcmp(a, "thumbnailsizex") == 0 ||
strcmp(a, "thumbnailsizey") == 0 ||
strcmp(a, "imageuploadfrequency") == 0 ||
strcmp(a, "imageuploadoriginalname") == 0 ||
strcmp(a, "imagecreatethumbnails") == 0 ||
strcmp(a, "imageresizewidth") == 0 ||
strcmp(a, "imageresizeheight") == 0 ||
strcmp(a, "imagestretchamountdaytime") == 0 ||
strcmp(a, "imagestretchmidpointdaytime") == 0 ||
strcmp(a, "imagestretchamountnighttime") == 0 ||
strcmp(a, "imagestretchmidpointnighttime") == 0 ||
strcmp(a, "imagecroptop") == 0 ||
strcmp(a, "imagecropright") == 0 ||
strcmp(a, "imagecropbottom") == 0 ||
strcmp(a, "imagecropleft") == 0 ||
strcmp(a, "imageresizeuploadswidth") == 0 ||
strcmp(a, "imageresizeuploadsheight") == 0 ||
strcmp(a, "imageremovebadlow") == 0 ||
strcmp(a, "imageremovebadhigh") == 0 ||
strcmp(a, "timelapsegenerate") == 0 ||
strcmp(a, "timelapseupload") == 0 ||
strcmp(a, "timelapseuploadthumbnail") == 0 ||
strcmp(a, "timelapsewidth") == 0 ||
strcmp(a, "timelapseheight") == 0 ||
strcmp(a, "timelapsefps") == 0 ||
strcmp(a, "timelapsebitrate") == 0 ||
strcmp(a, "timelapsevcodec") == 0 ||
strcmp(a, "timelapsepixfmt") == 0 ||
strcmp(a, "timelapsefflog") == 0 ||
strcmp(a, "timelapsekeepsequence") == 0 ||
strcmp(a, "timelapseextraparameters") == 0 ||
strcmp(a, "minitimelapsenumimages") == 0 ||
strcmp(a, "minitimelapseforcecreation") == 0 ||
strcmp(a, "minitimelapsefrequency") == 0 ||
strcmp(a, "minitimelapseupload") == 0 ||
strcmp(a, "minitimelapseuploadthumbnail") == 0 ||
strcmp(a, "minitimelapsewidth") == 0 ||
strcmp(a, "minitimelapseheight") == 0 ||
strcmp(a, "minitimelapsefps") == 0 ||
strcmp(a, "minitimelapsebitrate") == 0 ||
strcmp(a, "keogramgenerate") == 0 ||
strcmp(a, "keogramupload") == 0 ||
strcmp(a, "keogramexpand") == 0 ||
strcmp(a, "keogramfontname") == 0 ||
strcmp(a, "keogramfontcolor") == 0 ||
strcmp(a, "keogramfontsize") == 0 ||
strcmp(a, "keogramlinethickness") == 0 ||
strcmp(a, "keogramextraparameters") == 0 ||
strcmp(a, "startrailsgenerate") == 0 ||
strcmp(a, "startrailsbrightnessthreshold") == 0 ||
strcmp(a, "startrailsupload") == 0 ||
strcmp(a, "startrailsextraparameters") == 0 ||
strcmp(a, "webuidatafiles") == 0 ||
strcmp(a, "uploadimagefrequency") == 0 ||
strcmp(a, "uploadimageoriginalname") == 0 ||
strcmp(a, "imagestretchamount") == 0 ||
strcmp(a, "imageresizeuploads") == 0 ||
strcmp(a, "uhubctlport") == 0 ||
strcmp(a, "uhubctlpath") == 0 ||

strcmp(a, "lastchanged") == 0 ||
strcmp(a, "uselocalwebsite") == 0 ||
strcmp(a, "useremotewebsite") == 0 ||
strcmp(a, "useremoteserver") == 0 ||
strcmp(a, "remotewebsiteprotocol") == 0 ||
strcmp(a, "remoteserverprotocol") == 0 ||
strcmp(a, "remotewebsiteimagedir") == 0 ||
strcmp(a, "remoteserverimagedir") == 0 ||
strcmp(a, "remotewebsiteurl") == 0 ||
strcmp(a, "remoteserverurl") == 0 ||
strcmp(a, "remotewebsiteimageurl") == 0 ||
strcmp(a, "remoteserverimageurl") == 0 ||
strcmp(a, "remotewebsitevideodestinationname") == 0 ||
strcmp(a, "remoteservervideodestinationname") == 0 ||
strcmp(a, "remotewebsitekeogramdestinationname") == 0 ||
strcmp(a, "remoteserverkeogramdestinationname") == 0 ||
strcmp(a, "remotewebsitestartrailsdestinationname") == 0 ||
strcmp(a, "remoteserverstartrailsdestinationname") == 0 ||
strcmp(a, "displaysettings") == 0 ||
strcmp(a, "showonmap") == 0 ||
strcmp(a, "location") == 0 ||
strcmp(a, "owner") == 0 ||
strcmp(a, "camera") == 0 ||
strcmp(a, "lens") == 0 ||
strcmp(a, "computer") == 0 ||
strcmp(a, "usedarkframes") == 0 ||
strcmp(a, "uselogin") == 0 ||
strcmp(a, "cameratype") == 0 ||
strcmp(a, "cameramodel") == 0 ||
strcmp(a, "showusb") == 0 ||
strcmp(a, "alwaysshowadvanced") == 0
)
{
i++;
}

else
Log(-1, "*** %s: WARNING: Unknown argument: [%s]. Ignored.\n", cg->ME, a);
}
Expand Down

0 comments on commit 38c942f

Please sign in to comment.