From d64cb33e90a5d178222c4e8e3f49d44c33fd93ae Mon Sep 17 00:00:00 2001 From: Pamplemousse Date: Fri, 30 Jul 2021 10:34:28 -0700 Subject: [PATCH] Remove unused struct in `libstore` Signed-off-by: Pamplemousse --- src/libstore/binary-cache-store.cc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/libstore/binary-cache-store.cc b/src/libstore/binary-cache-store.cc index df401e6f4..74eb0a9ab 100644 --- a/src/libstore/binary-cache-store.cc +++ b/src/libstore/binary-cache-store.cc @@ -130,17 +130,6 @@ AutoCloseFD openFile(const Path & path) return fd; } -struct FileSource : FdSource -{ - AutoCloseFD fd2; - - FileSource(const Path & path) - : fd2(openFile(path)) - { - fd = fd2.get(); - } -}; - ref BinaryCacheStore::addToStoreCommon( Source & narSource, RepairFlag repair, CheckSigsFlag checkSigs, std::function mkInfo)