summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-04-03 21:35:51 +0200
committerLudovic Courtès <ludo@gnu.org>2021-04-03 22:08:33 +0200
commit222fff253c6c6a3d1def16ed90723d7f2c4f9b89 (patch)
treebbe09eb4962e8cf509a03baff4fc301f9449cadf /nix
parent58beda01217c48da52e67ac5461f33b6532b5ede (diff)
daemon: Remove dead code.
Reported by Noisytoot on #guix. * nix/nix-daemon/shared.hh (showManPage): Remove. * nix/nix-daemon/nix-daemon.cc (printHelp, programId): Remove.
Diffstat (limited to 'nix')
-rw-r--r--nix/nix-daemon/nix-daemon.cc9
-rw-r--r--nix/nix-daemon/shared.hh9
2 files changed, 0 insertions, 18 deletions
diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc
index 3dd156ba77..497de11a04 100644
--- a/nix/nix-daemon/nix-daemon.cc
+++ b/nix/nix-daemon/nix-daemon.cc
@@ -1046,12 +1046,3 @@ void run(const std::vector<int>& sockets)
{
daemonLoop(sockets);
}
-
-
-void printHelp()
-{
- showManPage("nix-daemon");
-}
-
-
-string programId = "nix-daemon";
diff --git a/nix/nix-daemon/shared.hh b/nix/nix-daemon/shared.hh
index b45e9f0cfd..98ec97410b 100644
--- a/nix/nix-daemon/shared.hh
+++ b/nix/nix-daemon/shared.hh
@@ -20,18 +20,9 @@
#pragma once
-#include <string>
-
#include <stdlib.h>
#include <signal.h>
-static inline void
-showManPage (const char *name)
-{
- /* This idea is evil. Abort. */
- abort ();
-}
-
extern volatile ::sig_atomic_t blockInt;
extern char **argvSaved;