[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: daemon: Remove dead code.
From: |
guix-commits |
Subject: |
02/04: daemon: Remove dead code. |
Date: |
Sat, 3 Apr 2021 16:10:40 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 222fff253c6c6a3d1def16ed90723d7f2c4f9b89
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Apr 3 21:35:51 2021 +0200
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.
---
nix/nix-daemon/nix-daemon.cc | 9 ---------
nix/nix-daemon/shared.hh | 9 ---------
2 files changed, 18 deletions(-)
diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc
index 3dd156b..497de11 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 b45e9f0..98ec974 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;