diff --git a/lix/libstore/binary-cache-store.cc b/lix/libstore/binary-cache-store.cc index 3af54d4d9..609dc962a 100644 --- a/lix/libstore/binary-cache-store.cc +++ b/lix/libstore/binary-cache-store.cc @@ -65,13 +65,6 @@ void BinaryCacheStore::upsertFile(const std::string & path, upsertFile(path, std::make_shared(std::move(data)), mimeType); } -box_ptr BinaryCacheStore::getFile(const std::string & path) -{ - return make_box_ptr([](std::string data) -> Generator { - co_yield std::span{data.data(), data.size()}; - }(std::move(*getFileContents(path)))); -} - std::optional BinaryCacheStore::getFileContents(const std::string & path) { StringSink sink; diff --git a/lix/libstore/binary-cache-store.hh b/lix/libstore/binary-cache-store.hh index 538da50b6..a8a393133 100644 --- a/lix/libstore/binary-cache-store.hh +++ b/lix/libstore/binary-cache-store.hh @@ -85,7 +85,7 @@ public: /** * Dump the contents of the specified file to a sink. */ - virtual box_ptr getFile(const std::string & path); + virtual box_ptr getFile(const std::string & path) = 0; virtual std::optional getFileContents(const std::string & path);