From 1c5f5d6d8cb3bd42ed436e31366a328598165734 Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Sat, 10 Sep 2022 19:20:38 +0200 Subject: daemon: Remove unused function openStore. * nix/libstore/store-api.cc (openStore): Remove it. * nix/libstore/store-api.hh (openStore): Likewise. Signed-off-by: Mathieu Othacehe --- nix/libstore/store-api.cc | 6 ------ nix/libstore/store-api.hh | 5 ----- 2 files changed, 11 deletions(-) (limited to 'nix/libstore') diff --git a/nix/libstore/store-api.cc b/nix/libstore/store-api.cc index 0de0b6b298..e3a8ac0995 100644 --- a/nix/libstore/store-api.cc +++ b/nix/libstore/store-api.cc @@ -277,10 +277,4 @@ namespace nix { std::shared_ptr store; -std::shared_ptr openStore(bool reserveSpace) -{ - return std::shared_ptr(new LocalStore(reserveSpace)); -} - - } diff --git a/nix/libstore/store-api.hh b/nix/libstore/store-api.hh index 7d2ad2270d..0693085a25 100644 --- a/nix/libstore/store-api.hh +++ b/nix/libstore/store-api.hh @@ -365,11 +365,6 @@ Paths topoSortPaths(StoreAPI & store, const PathSet & paths); extern std::shared_ptr store; -/* Factory method: open the Nix database, either through the local or - remote implementation. */ -std::shared_ptr openStore(bool reserveSpace = true); - - /* Display a set of paths in human-readable form (i.e., between quotes and separated by commas). */ string showPaths(const PathSet & paths); -- cgit v1.2.3