guix-commits
[Top][All Lists]
Advanced

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

78/118: Remove some dead code


From: Ludovic Courtès
Subject: 78/118: Remove some dead code
Date: Tue, 19 May 2015 14:45:48 +0000

civodul pushed a commit to branch nix
in repository guix.

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

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

diff --git a/nix/libstore/worker-protocol.hh b/nix/libstore/worker-protocol.hh
index 9317f89..c7d3a72 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 6c45934..dc41cae 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,



reply via email to

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