Removed silent switch

This commit is contained in:
Mark McDowall 2013-01-06 00:36:50 -08:00
commit 7991887e5e
3 changed files with 0 additions and 24 deletions

View file

@ -81,22 +81,6 @@ namespace NzbDrone
_serviceProvider.UnInstall(ServiceProvider.NZBDRONE_SERVICE_NAME);
}
break;
}
case ApplicationMode.Silent:
{
var startInfo = new ProcessStartInfo();
startInfo.FileName = _environmentProvider.GetNzbDroneExe();
startInfo.WorkingDirectory = _environmentProvider.ApplicationPath;
startInfo.UseShellExecute = false;
startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardError = true;
startInfo.CreateNoWindow = true;
_processProvider.Start(startInfo);
Environment.Exit(0);
break;
}
default:
@ -119,7 +103,6 @@ namespace NzbDrone
if (arg == "i") return ApplicationMode.InstallService;
if (arg == "u") return ApplicationMode.UninstallService;
if (arg == "s") return ApplicationMode.Silent;
return ApplicationMode.Help;
}