From 7a411e01cfa71604b7b831103e206f338b2fc675 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 22 May 2015 11:29:22 +0200 Subject: [PATCH] Remove dead code --- src/nix-collect-garbage/nix-collect-garbage.cc | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/nix-collect-garbage/nix-collect-garbage.cc b/src/nix-collect-garbage/nix-collect-garbage.cc index b671e6cb8..c8dc9099c 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