From aec81c5d3a4492cfcba735e86a6df16c9a000ced Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 23 Dec 2017 16:58:43 -0700 Subject: [PATCH] Remove unused 'NoRestart' variable & startup flag --- TShockAPI/TShock.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 1f8ad18a..f6acb8e7 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -73,11 +73,6 @@ namespace TShockAPI /// LogClear - Determines whether or not the log file should be cleared on initialization. private static bool LogClear; - /// - /// Set by the command line, disables the '/restart' command. - /// - internal static bool NoRestart; - /// Will be set to true once Utils.StopServer() is called. public static bool ShuttingDown; @@ -768,8 +763,7 @@ namespace TShockAPI .AddFlag("-logclear", () => LogClear = true) .AddFlag("-autoshutdown", () => Main.instance.EnableAutoShutdown()) .AddFlag("-dump", () => Utils.Dump()) - .AddFlag("--stats-optout", () => StatTracker.OptOut = true) - .AddFlag("--no-restart", () => NoRestart = true); + .AddFlag("--stats-optout", () => StatTracker.OptOut = true); CliParser.ParseFromSource(parms); }