From 19f3ecd830d092caccf43ab122b9a01ccb2ce98f Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Tue, 27 Sep 2022 00:06:56 +0200 Subject: [PATCH] nix-build: remove unused --add-root arg Fixes #1982 --- src/nix-build/nix-build.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/nix-build/nix-build.cc b/src/nix-build/nix-build.cc index df292dce6..adcaab686 100644 --- a/src/nix-build/nix-build.cc +++ b/src/nix-build/nix-build.cc @@ -85,7 +85,6 @@ static void main_nix_build(int argc, char * * argv) Strings attrPaths; Strings left; RepairFlag repair = NoRepair; - Path gcRoot; BuildMode buildMode = bmNormal; bool readStdin = false; @@ -167,9 +166,6 @@ static void main_nix_build(int argc, char * * argv) else if (*arg == "--out-link" || *arg == "-o") outLink = getArg(*arg, arg, end); - else if (*arg == "--add-root") - gcRoot = getArg(*arg, arg, end); - else if (*arg == "--dry-run") dryRun = true;