about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-05-22T09·29+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-05-22T09·29+0200
commit7a411e01cfa71604b7b831103e206f338b2fc675 (patch)
tree7dfef7405d3fcea42d9e4ba12ce0fa51ec1da497
parente0a068cb97225dcdc539c8989e96013399e1f9c9 (diff)
Remove dead code
-rw-r--r--src/nix-collect-garbage/nix-collect-garbage.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/nix-collect-garbage/nix-collect-garbage.cc b/src/nix-collect-garbage/nix-collect-garbage.cc
index b671e6cb82dd..c8dc9099ca09 100644
--- a/src/nix-collect-garbage/nix-collect-garbage.cc
+++ b/src/nix-collect-garbage/nix-collect-garbage.cc
@@ -10,24 +10,6 @@ using namespace nix;
 std::string deleteOlderThan;
 bool dryRun = false;
 
-void runProgramSimple(Path program, const Strings & args)
-{
-    checkInterrupt();
-
-    /* Fork. */
-    Pid pid = startProcess([&]() {
-        Strings args_(args);
-        args_.push_front(program);
-        auto cargs = stringsToCharPtrs(args_);
-
-        execv(program.c_str(), (char * *) &cargs[0]);
-
-        throw SysError(format("executing ‘%1%’") % program);
-    });
-
-    pid.wait(true);
-}
-
 
 /* If `-d' was specified, remove all old generations of all profiles.
  * Of course, this makes rollbacks to before this point in time