[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/13: daemon: Remove unused function findOutput.
From: |
guix-commits |
Subject: |
03/13: daemon: Remove unused function findOutput. |
Date: |
Sun, 11 Sep 2022 10:43:57 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit 4b32f87e9adf91d5d94287562d8844727d47a07b
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sat Sep 10 19:20:40 2022 +0200
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>
---
nix/libstore/misc.cc | 8 --------
nix/libstore/misc.hh | 4 ----
2 files changed, 12 deletions(-)
diff --git a/nix/libstore/misc.cc b/nix/libstore/misc.cc
index 97618089bd..d4e6d1b4af 100644
--- a/nix/libstore/misc.cc
+++ b/nix/libstore/misc.cc
@@ -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)
diff --git a/nix/libstore/misc.hh b/nix/libstore/misc.hh
index edbf24047e..f70cda9fd0 100644
--- a/nix/libstore/misc.hh
+++ b/nix/libstore/misc.hh
@@ -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);
- branch master updated (6519b1d59c -> 5ed679a2a9), guix-commits, 2022/09/11
- 07/13: gnu: font-plemoljp: Update to 1.2.7., guix-commits, 2022/09/11
- 04/13: gnu: python-qrcode: Update to 7.3.1., guix-commits, 2022/09/11
- 03/13: daemon: Remove unused function findOutput.,
guix-commits <=
- 11/13: gnu: java-slf4j-api: Update the source URI., guix-commits, 2022/09/11
- 06/13: gnu: nheko: Update to 0.10.1., guix-commits, 2022/09/11
- 12/13: gnu: janet: Update to 1.24.1., guix-commits, 2022/09/11
- 08/13: gnu: recoll: Update to 1.32.7., guix-commits, 2022/09/11
- 01/13: daemon: Remove unused function openStore., guix-commits, 2022/09/11
- 05/13: gnu: mtxclient: Update to 0.8.2., guix-commits, 2022/09/11
- 09/13: gnu: v4l2loopback-linux-module: Update to 0.12.7., guix-commits, 2022/09/11
- 10/13: gnu: plantuml: Update to 1.2022.7., guix-commits, 2022/09/11
- 02/13: daemon: Remove unused function exportPaths., guix-commits, 2022/09/11
- 13/13: gnu: Add steam-devices-udev-rules., guix-commits, 2022/09/11