guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

80/376: Remove some dead code


From: Ludovic Courtès
Subject: 80/376: Remove some dead code
Date: Wed, 28 Jan 2015 22:04:10 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit d3c61d83be254790101a67904b37e5439e98b4b2
Author: Eelco Dolstra <address@hidden>
Date:   Thu Jul 24 00:00:53 2014 +0200

    Remove some dead code
---
 src/libstore/worker-protocol.hh |    1 -
 src/nix-daemon/nix-daemon.cc    |    9 ---------
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/src/libstore/worker-protocol.hh b/src/libstore/worker-protocol.hh
index 9317f89..c7d3a72 100644
--- a/src/libstore/worker-protocol.hh
+++ b/src/libstore/worker-protocol.hh
@@ -12,7 +12,6 @@ namespace nix {
 
 
 typedef enum {
-    wopQuit = 0,
     wopIsValidPath = 1,
     wopHasSubstitutes = 3,
     wopQueryPathHash = 4,
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index c38cf74..2d6a3c4 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -151,15 +151,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,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]