diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-06-02 15:39:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 15:39:07 +0200 |
commit | bfa1acd85c4d15c5ea95337138f47672659e2a9e (patch) | |
tree | 0baf08df6b477c4368861d439ceddf20fdb5fef6 /src/libstore/store-api.cc | |
parent | c16fdda3a6f647efe83faf874df3c1fee10c88bc (diff) | |
parent | fac0c2d54a6b04175b40009506f2720d2594ed4e (diff) |
Merge pull request #3639 from obsidiansystems/do-fixme-store-removes
Remove `addToStore` variant as requested by `FIXME`
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index d479b86cb..095363d0c 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -840,21 +840,6 @@ std::string makeFixedOutputCA(FileIngestionMethod recursive, const Hash & hash) } -void Store::addToStore(const ValidPathInfo & info, Source & narSource, - RepairFlag repair, CheckSigsFlag checkSigs, - std::shared_ptr<FSAccessor> accessor) -{ - addToStore(info, make_ref<std::string>(narSource.drain()), repair, checkSigs, accessor); -} - -void Store::addToStore(const ValidPathInfo & info, const ref<std::string> & nar, - RepairFlag repair, CheckSigsFlag checkSigs, - std::shared_ptr<FSAccessor> accessor) -{ - StringSource source(*nar); - addToStore(info, source, repair, checkSigs, accessor); -} - } |