From 7d70d70e0ef7eb5e961eebb1c62009edfbeb8e04 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Thu, 29 Jan 2026 22:38:07 +0100 Subject: [PATCH] Codefix: remove unused parameter --- src/command.cpp | 2 +- src/command_func.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index c2bcf4a6be..6f57c59aa4 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -269,7 +269,7 @@ void CommandHelperBase::LogCommandExecution(Commands cmd, StringID err_message, * @param[in,out] cur_company Backup of current company at start of command execution. * @return True if test run can go ahead, false on error. */ -bool CommandHelperBase::InternalExecutePrepTest(CommandFlags cmd_flags, TileIndex, Backup &cur_company) +bool CommandHelperBase::InternalExecutePrepTest(CommandFlags cmd_flags, Backup &cur_company) { /* Always execute server and spectator commands as spectator */ bool exec_as_spectator = cmd_flags.Any({CommandFlag::Spectator, CommandFlag::Server}); diff --git a/src/command_func.h b/src/command_func.h index ab67a82085..fcf11d6d7b 100644 --- a/src/command_func.h +++ b/src/command_func.h @@ -89,7 +89,7 @@ protected: static void InternalDoAfter(CommandCost &res, DoCommandFlags flags, bool top_level, bool test); static std::tuple InternalPostBefore(Commands cmd, CommandFlags flags, TileIndex tile, StringID err_message, bool network_command); static void InternalPostResult(CommandCost &res, TileIndex tile, bool estimate_only, bool only_sending, StringID err_message, bool my_cmd); - static bool InternalExecutePrepTest(CommandFlags cmd_flags, TileIndex tile, Backup &cur_company); + static bool InternalExecutePrepTest(CommandFlags cmd_flags, Backup &cur_company); static std::tuple InternalExecuteValidateTestAndPrepExec(CommandCost &res, CommandFlags cmd_flags, bool estimate_only, bool network_command, Backup &cur_company); static CommandCost InternalExecuteProcessResult(Commands cmd, CommandFlags cmd_flags, const CommandCost &res_test, const CommandCost &res_exec, Money extra_cash, TileIndex tile, Backup &cur_company); static void LogCommandExecution(Commands cmd, StringID err_message, const CommandDataBuffer &args, bool failed); @@ -365,7 +365,7 @@ protected: } Backup cur_company(_current_company); - if (!InternalExecutePrepTest(cmd_flags, tile, cur_company)) { + if (!InternalExecutePrepTest(cmd_flags, cur_company)) { cur_company.Trash(); return MakeResult(CMD_ERROR); }