forked from lix-project/lix
Merge "libstore: remove unused copyPath function" into main
This commit is contained in:
commit
f281727e70
|
@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,8 +124,6 @@ void restorePath(const Path & path, Source & source);
|
||||||
*/
|
*/
|
||||||
void copyNAR(Source & source, Sink & sink);
|
void copyNAR(Source & source, Sink & sink);
|
||||||
|
|
||||||
void copyPath(const Path & from, const Path & to);
|
|
||||||
|
|
||||||
|
|
||||||
inline constexpr std::string_view narVersionMagic1 = "nix-archive-1";
|
inline constexpr std::string_view narVersionMagic1 = "nix-archive-1";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue