aboutsummaryrefslogtreecommitdiff
path: root/src/nix-collect-garbage
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-collect-garbage')
-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 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