about summary refs log tree commit diff
path: root/src/libnix/exec.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnix/exec.cc')
-rw-r--r--src/libnix/exec.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/libnix/exec.cc b/src/libnix/exec.cc
index 2e092b2e0dd6..a51b605d8100 100644
--- a/src/libnix/exec.cc
+++ b/src/libnix/exec.cc
@@ -11,29 +11,6 @@
 #include "globals.hh"
 
 
-class AutoDelete
-{
-    string path;
-    bool del;
-public:
-
-    AutoDelete(const string & p) : path(p) 
-    {
-        del = true;
-    }
-
-    ~AutoDelete()
-    {
-        if (del) deletePath(path);
-    }
-
-    void cancel()
-    {
-        del = false;
-    }
-};
-
-
 static string pathNullDevice = "/dev/null";
 
 
@@ -140,5 +117,3 @@ void runProgram(const string & program,
         throw Error("unable to build package");
     }
 }
-
-