From fb6907e3d68f1373917b8c46f4cd1abb341f4bbd Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Wed, 1 Aug 2018 18:30:03 -0400 Subject: [PATCH] Removes unused variable from `nix-build/nix-shell` This particular `shell` variable wasn't used, since a new one was declared in the only side of the `if` branch that used a `shell` variable. It could realistically confuse developers thinking it could use `$SHELL` under some situations. --- src/nix-build/nix-build.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index de0e9118f..35ad98731 100755 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -85,7 +85,6 @@ void mainWrapped(int argc, char * * argv) BuildMode buildMode = bmNormal; bool readStdin = false; - auto shell = getEnv("SHELL", "/bin/sh"); std::string envCommand; // interactive shell Strings envExclude;