libstore: remove unused copyPath function

Change-Id: Ibfb0848d8b337bd38947a745c240838865cea401
This commit is contained in:
eldritch horrors 2024-05-22 18:26:01 +02:00
parent 20981461d4
commit 47523944c5
2 changed files with 0 additions and 11 deletions

View file

@ -389,13 +389,4 @@ void copyNAR(Source & source, Sink & sink)
}
void copyPath(const Path & from, const Path & to)
{
auto source = sinkToSource([&](Sink & sink) {
dumpPath(from, sink);
});
restorePath(to, *source);
}
}

View file

@ -124,8 +124,6 @@ void restorePath(const Path & path, Source & source);
*/
void copyNAR(Source & source, Sink & sink);
void copyPath(const Path & from, const Path & to);
inline constexpr std::string_view narVersionMagic1 = "nix-archive-1";