~ruther/guix-local

4b32f87e9adf91d5d94287562d8844727d47a07b — Maxime Devos 3 years ago 9303258
daemon: Remove unused function findOutput.

* nix/libstore/misc.cc (findOutput): Remove it.
* nix/libstore/misc.hh (findOutput): Likewise.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2 files changed, 0 insertions(+), 12 deletions(-)

M nix/libstore/misc.cc
M nix/libstore/misc.hh
M nix/libstore/misc.cc => nix/libstore/misc.cc +0 -8
@@ 59,14 59,6 @@ void computeFSClosure(StoreAPI & store, const Path & path,
}


Path findOutput(const Derivation & drv, string id)
{
    foreach (DerivationOutputs::const_iterator, i, drv.outputs)
        if (i->first == id) return i->second.path;
    throw Error(format("derivation has no output `%1%'") % id);
}


static void dfsVisit(StoreAPI & store, const PathSet & paths,
    const Path & path, PathSet & visited, Paths & sorted,
    PathSet & parents)

M nix/libstore/misc.hh => nix/libstore/misc.hh +0 -4
@@ 21,10 21,6 @@ void computeFSClosure(StoreAPI & store, const Path & path,
    PathSet & paths, bool flipDirection = false,
    bool includeOutputs = false, bool includeDerivers = false);

/* Return the path corresponding to the output identifier `id' in the
   given derivation. */
Path findOutput(const Derivation & drv, string id);

bool willBuildLocally(const Derivation & drv);

bool substitutesAllowed(const Derivation & drv);