aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-28 18:07:10 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-28 18:07:10 +0100
commit22a754c091f765061f59bef5ce091268493bb138 (patch)
treee0e12a576a01307ecb97fa043497ca2840a3a3e6 /src/libstore/store-api.cc
parent2e953b567ebbcd3aaaf71bf592ab733bdcdd6797 (diff)
Fix GC failures on bad store path names
It failed on names like '/nix/store/9ip48nkc9rfy0a4yaw98lp6gipqlib1a-'.
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index d8f6c22bc..75fa5d1e6 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -19,14 +19,6 @@ bool Store::isInStore(const Path & path) const
}
-bool Store::isStorePath(const Path & path) const
-{
- return isInStore(path)
- && path.size() >= storeDir.size() + 1 + storePathHashLen
- && path.find('/', storeDir.size() + 1) == Path::npos;
-}
-
-
Path Store::toStorePath(const Path & path) const
{
if (!isInStore(path))