aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-15 16:41:28 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-09-23 04:56:04 +0000
commit9fbc31a65bab50cd60a882517b3c8030485ce096 (patch)
tree4a6f4d92801af298c7b5826a4ce5161f2e9e3c8b /src/libstore/store-api.hh
parent980edd1f3a31eefe297d073f6a7cff099f21eb4a (diff)
Get rid of Hash::dummy from BinaryCacheStore
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 591140874..85a84d080 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -454,9 +454,7 @@ public:
// FIXME: remove?
virtual StorePath addToStoreFromDump(Source & dump, const string & name,
FileIngestionMethod method = FileIngestionMethod::Recursive, HashType hashAlgo = htSHA256, RepairFlag repair = NoRepair)
- {
- throw Error("addToStoreFromDump() is not supported by this store");
- }
+ { unsupported("addToStoreFromDump"); }
/* Like addToStore, but the contents written to the output path is
a regular file containing the given string. */