about summary refs log tree commit diff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2016-09-02T10·35-0400
committerShea Levy <shea@shealevy.com>2016-09-02T10·35-0400
commita91954f0c658e90b08f7f6e371305281e4d7d329 (patch)
tree6d7c3b6b61515e667bc34df8cd3e2cc152fd0ae4 /src/libstore/store-api.hh
parent87b189c2b326c790a35ff53a2d825c1ef48f644e (diff)
Merge openStore and openStoreAt with default arguments
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 41fc58fc48..76a2f5e9c7 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -587,11 +587,7 @@ void removeTempRoots();
    If ‘uri’ is empty, it defaults to ‘direct’ or ‘daemon’ depending on
    whether the user has write access to the local Nix store/database.
    set to true *unless* you're going to collect garbage. */
-ref<Store> openStoreAt(const std::string & uri);
-
-
-/* Open the store indicated by the ‘NIX_REMOTE’ environment variable. */
-ref<Store> openStore();
+ref<Store> openStore(const std::string & uri = getEnv("NIX_REMOTE"));
 
 
 /* Return the default substituter stores, defined by the