mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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>
This commit is contained in:
parent
93032586df
commit
4b32f87e9a
2 changed files with 0 additions and 12 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue