1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-21 08:21:08 +01:00

Remove InputAccessor::root()

This commit is contained in:
Eelco Dolstra 2023-11-30 16:44:54 +01:00
parent 305939655a
commit 43d9fb6cf1
4 changed files with 10 additions and 13 deletions

View file

@ -53,11 +53,6 @@ StorePath InputAccessor::fetchToStore(
return storePath;
}
SourcePath InputAccessor::root()
{
return {ref(shared_from_this()), CanonPath::root};
}
std::ostream & operator << (std::ostream & str, const SourcePath & path)
{
str << path.to_string();
@ -88,7 +83,7 @@ SourcePath SourcePath::parent() const
SourcePath SourcePath::resolveSymlinks() const
{
auto res = accessor->root();
auto res = SourcePath(accessor);
int linksAllowed = 1024;