aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/store-api.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-24 17:33:53 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-24 17:44:55 +0100
commit28e7e29abdcdaf60ba8a5fad3738fe4a8f3db9a8 (patch)
tree12755f285c04a9b83ec0d304e8776cbe0ca602a2 /src/libstore/store-api.cc
parent5a64e66268471d2141e5b5c72b9658644c113414 (diff)
Eliminate reserveSpace flag
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r--src/libstore/store-api.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc
index 9f72bbd83..7058249f0 100644
--- a/src/libstore/store-api.cc
+++ b/src/libstore/store-api.cc
@@ -320,7 +320,7 @@ void Store::exportPaths(const Paths & paths,
namespace nix {
-ref<Store> openStoreAt(const std::string & uri, bool reserveSpace)
+ref<Store> openStoreAt(const std::string & uri)
{
if (std::string(uri, 0, 7) == "file://") {
auto store = make_ref<LocalBinaryCacheStore>(std::shared_ptr<Store>(0),
@@ -345,13 +345,13 @@ ref<Store> openStoreAt(const std::string & uri, bool reserveSpace)
return mode == mDaemon
? (ref<Store>) make_ref<RemoteStore>()
- : (ref<Store>) make_ref<LocalStore>(reserveSpace);
+ : (ref<Store>) make_ref<LocalStore>();
}
-ref<Store> openStore(bool reserveSpace)
+ref<Store> openStore()
{
- return openStoreAt(getEnv("NIX_REMOTE"), reserveSpace);
+ return openStoreAt(getEnv("NIX_REMOTE"));
}