From 1ebdaecdf2c01d2509e6b95564c90af1a8dbcb67 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Wed, 23 Jul 2025 13:17:02 +0200 Subject: [PATCH] chore: Remove dead code in hash_command_output --- src/ccache/hashutil.cpp | 5 ----- 1 file changed, 5 deletions(-) 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; } -- 2.47.3