]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Remove dead code in hash_command_output
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 23 Jul 2025 11:17:02 +0000 (13:17 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 23 Jul 2025 11:17:02 +0000 (13:17 +0200)
src/ccache/hashutil.cpp

index 426930a6ef3c16cef31d14557e60c7b39477a0aa..ca822247d4e483fee3b9cc590c48e504f3c4cd74 100644 (file)
@@ -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;
   }