about summary refs log tree commit diff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-10-21T16·09+0200
committerEelco Dolstra <edolstra@gmail.com>2016-10-21T16·09+0200
commitfdbbcc44924cb4d9028fa68b2f7d423fb5d8670f (patch)
treee2d5e7ef799cd558d10ab25e05efe8d15728fc2a /src/libstore/store-api.hh
parent542ae5c8f804b704101f9d27bd8b2aa62ded899c (diff)
Remove addPathToAccessor
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index d6e181196349..94dc8ab1ac7e 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -366,7 +366,8 @@ public:
 
     /* Import a path into the store. */
     virtual void addToStore(const ValidPathInfo & info, const ref<std::string> & nar,
-        bool repair = false, bool dontCheckSigs = false) = 0;
+        bool repair = false, bool dontCheckSigs = false,
+        std::shared_ptr<FSAccessor> accessor = 0) = 0;
 
     /* Copy the contents of a path to the store and register the
        validity the resulting path.  The resulting path is returned.
@@ -461,17 +462,6 @@ public:
     /* Return an object to access files in the Nix store. */
     virtual ref<FSAccessor> getFSAccessor() = 0;
 
-private:
-
-    /* Inform an accessor about the NAR contents of a store path. Used
-       by importPaths() to speed up subsequent access to the imported
-       paths when used with binary cache stores. */
-    virtual void addPathToAccessor(ref<FSAccessor>, const Path & storePath, const ref<std::string> & data)
-    {
-    }
-
-public:
-
     /* Add signatures to the specified store path. The signatures are
        not verified. */
     virtual void addSignatures(const Path & storePath, const StringSet & sigs) = 0;