diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-04 20:15:41 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-05-30 15:18:12 +0200 |
commit | 3be2e71ab31200e3d263d6d2aeb4bf85462156a0 (patch) | |
tree | 0d2c3f47d2defd91b8b43b90527bede250caa25b /src/libstore/local-binary-cache-store.cc | |
parent | d593625d0594f282ec6a24a8038b886c3fef37ab (diff) |
BinaryCacheStore: Remove buildPaths() / ensurePath()
Diffstat (limited to 'src/libstore/local-binary-cache-store.cc')
-rw-r--r-- | src/libstore/local-binary-cache-store.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libstore/local-binary-cache-store.cc b/src/libstore/local-binary-cache-store.cc index 2c2944938..e979a94b7 100644 --- a/src/libstore/local-binary-cache-store.cc +++ b/src/libstore/local-binary-cache-store.cc @@ -11,9 +11,9 @@ private: public: - LocalBinaryCacheStore(std::shared_ptr<Store> localStore, + LocalBinaryCacheStore( const StoreParams & params, const Path & binaryCacheDir) - : BinaryCacheStore(localStore, params) + : BinaryCacheStore(params) , binaryCacheDir(binaryCacheDir) { } @@ -90,8 +90,7 @@ static RegisterStoreImplementation regStore([]( -> std::shared_ptr<Store> { if (std::string(uri, 0, 7) != "file://") return 0; - auto store = std::make_shared<LocalBinaryCacheStore>( - std::shared_ptr<Store>(0), params, std::string(uri, 7)); + auto store = std::make_shared<LocalBinaryCacheStore>(params, std::string(uri, 7)); store->init(); return store; }); |