mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 08:12:29 +00:00
Merge pull request #10777 from Mic92/copy-path
libstore: remove unused copyPath function
This commit is contained in:
commit
7de033d63f
@ -315,13 +315,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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -82,8 +82,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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user