aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2020-03-22 23:43:07 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-03-25 16:12:14 -0400
commite433d4af4cf78c88dc0cb3e8139e835470b72fd3 (patch)
treeff8d812a87c86f0418394e87a7fd4d17f2886929 /src/libstore/store-api.cc
parenteb1911e277bfcc1b161cb996205ae1696f496099 (diff)
Extend Rust FFI
Do idiomatic C++ copy and move constructors for a few things, so wrapping structs' defaults can work.
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index b9e894a9a..261afed49 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -687,21 +687,6 @@ void copyClosure(ref<Store> srcStore, ref<Store> dstStore,
}
-ValidPathInfo::ValidPathInfo(const ValidPathInfo & other)
- : path(other.path.clone())
- , deriver(other.deriver ? other.deriver->clone(): std::optional<StorePath>{})
- , narHash(other.narHash)
- , references(cloneStorePathSet(other.references))
- , registrationTime(other.registrationTime)
- , narSize(other.narSize)
- , id(other.id)
- , ultimate(other.ultimate)
- , sigs(other.sigs)
- , ca(other.ca)
-{
-}
-
-
std::optional<ValidPathInfo> decodeValidPathInfo(const Store & store, std::istream & str, bool hashGiven)
{
std::string path;