From: Joel Rosdahl Date: Wed, 23 Jul 2025 11:17:02 +0000 (+0200) Subject: chore: Remove dead code in hash_command_output X-Git-Tag: v4.12~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ebdaecdf2c01d2509e6b95564c90af1a8dbcb67;p=thirdparty%2Fccache.git chore: Remove dead code in hash_command_output --- diff --git a/src/ccache/hashutil.cpp b/src/ccache/hashutil.cpp index 426930a6..ca822247 100644 --- a/src/ccache/hashutil.cpp +++ b/src/ccache/hashutil.cpp @@ -349,11 +349,6 @@ hash_command_output(Hash& hash, if (util::starts_with(adjusted_command, "echo")) { adjusted_command = FMT("cmd.exe /c \"{}\"", adjusted_command); using_cmd_exe = true; - } else if (util::starts_with(adjusted_command, "%compiler%") - && compiler == "echo") { - adjusted_command = - FMT("cmd.exe /c \"{}{}\"", compiler, adjusted_command.substr(10)); - using_cmd_exe = true; } else { using_cmd_exe = false; }