diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-22T09·29+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-05-22T09·29+0200 |
commit | 7a411e01cfa71604b7b831103e206f338b2fc675 (patch) | |
tree | 7dfef7405d3fcea42d9e4ba12ce0fa51ec1da497 /src/nix-collect-garbage | |
parent | e0a068cb97225dcdc539c8989e96013399e1f9c9 (diff) |
Remove dead code
Diffstat (limited to 'src/nix-collect-garbage')
-rw-r--r-- | src/nix-collect-garbage/nix-collect-garbage.cc | 18 |
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 |