about summary refs log tree commit diff
path: root/third_party/nix/src/nix/optimise-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/optimise-store.cc')
-rw-r--r--third_party/nix/src/nix/optimise-store.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/third_party/nix/src/nix/optimise-store.cc b/third_party/nix/src/nix/optimise-store.cc
deleted file mode 100644
index ceb53aa77b..0000000000
--- a/third_party/nix/src/nix/optimise-store.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-#include <atomic>
-
-#include "libmain/shared.hh"
-#include "libstore/store-api.hh"
-#include "nix/command.hh"
-
-namespace nix {
-struct CmdOptimiseStore final : StoreCommand {
-  CmdOptimiseStore() = default;
-
-  std::string name() override { return "optimise-store"; }
-
-  std::string description() override {
-    return "replace identical files in the store by hard links";
-  }
-
-  Examples examples() override {
-    return {
-        Example{"To optimise the Nix store:", "nix optimise-store"},
-    };
-  }
-
-  void run(ref<Store> store) override { store->optimiseStore(); }
-};
-}  // namespace nix
-
-static nix::RegisterCommand r1(nix::make_ref<nix::CmdOptimiseStore>());