summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-24 00:00:53 +0200
committerLudovic Courtès <ludo@gnu.org>2015-05-11 17:11:38 +0200
commit4ab4b0c109734bd6e265ca5f1b6415c31c03ab11 (patch)
tree2f95f0dec72d8ca5fb9601a1d21a340b83701559 /nix
parent1cffdf5847b065183c9aac86df3a9578020e6712 (diff)
downloadguix-4ab4b0c109734bd6e265ca5f1b6415c31c03ab11.tar.gz
Remove some dead code
Diffstat (limited to 'nix')
-rw-r--r--nix/libstore/worker-protocol.hh1
-rw-r--r--nix/nix-daemon/nix-daemon.cc9
2 files changed, 0 insertions, 10 deletions
diff --git a/nix/libstore/worker-protocol.hh b/nix/libstore/worker-protocol.hh
index 9317f89c37..c7d3a726ab 100644
--- a/nix/libstore/worker-protocol.hh
+++ b/nix/libstore/worker-protocol.hh
@@ -12,7 +12,6 @@ namespace nix {
 
 
 typedef enum {
-    wopQuit = 0,
     wopIsValidPath = 1,
     wopHasSubstitutes = 3,
     wopQueryPathHash = 4,
diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc
index 6c45934f15..dc41cae7f5 100644
--- a/nix/nix-daemon/nix-daemon.cc
+++ b/nix/nix-daemon/nix-daemon.cc
@@ -283,15 +283,6 @@ static void performOp(bool trusted, unsigned int clientVersion,
 {
     switch (op) {
 
-#if 0
-    case wopQuit: {
-        /* Close the database. */
-        store.reset((StoreAPI *) 0);
-        writeInt(1, to);
-        break;
-    }
-#endif
-
     case wopIsValidPath: {
         /* 'readStorePath' could raise an error leading to the connection
            being closed.  To be able to recover from an invalid path error,