diff --git a/lix/libstore/path.cc b/lix/libstore/path.cc index 706bd3edc..f99710768 100644 --- a/lix/libstore/path.cc +++ b/lix/libstore/path.cc @@ -1,7 +1,5 @@ #include "lix/libstore/store-api.hh" -#include - namespace nix { static void checkName(std::string_view path, std::string_view name) @@ -62,13 +60,6 @@ bool StorePath::isDerivation() const StorePath StorePath::dummy("ffffffffffffffffffffffffffffffff-x"); -StorePath StorePath::random(std::string_view name) -{ - Hash hash(HashType::SHA1); - randombytes_buf(hash.hash, hash.hashSize); - return StorePath(hash, name); -} - StorePath Store::parseStorePath(std::string_view path) const { auto p = canonPath(std::string(path)); diff --git a/lix/libstore/path.hh b/lix/libstore/path.hh index 44f494bb7..c185f141d 100644 --- a/lix/libstore/path.hh +++ b/lix/libstore/path.hh @@ -72,8 +72,6 @@ public: } static StorePath dummy; - - static StorePath random(std::string_view name); }; typedef std::set StorePathSet;