diff options
author | eldritch horrors <pennae@lix.systems> | 2024-05-23 02:31:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix-systems> | 2024-05-23 02:31:50 +0000 |
commit | f281727e70c856cc8e4bb6a357c71c53bac756e1 (patch) | |
tree | 1f500be84ad6443f2c03ee39eb67c30f818e6ef3 /src | |
parent | d05e0b9f1fedfe1700959cc6045ce9bc25b9e955 (diff) | |
parent | 47523944c5f13250dd0eb9d56d5c6621f4722bea (diff) |
Merge "libstore: remove unused copyPath function" into main
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/archive.cc | 9 | ||||
-rw-r--r-- | src/libutil/archive.hh | 2 |
2 files changed, 0 insertions, 11 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc index 00536c1e1..a18c54ebf 100644 --- a/src/libutil/archive.cc +++ b/src/libutil/archive.cc @@ -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); -} - - } diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh index 2cf164a41..017b6633c 100644 --- a/src/libutil/archive.hh +++ b/src/libutil/archive.hh @@ -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"; |