From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MLM7LMfHHGPEoQAAbAwnHQ (envelope-from ) for ; Sat, 10 Sep 2022 19:22:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6IM2K8fHHGNVyAAAG6o9tA (envelope-from ) for ; Sat, 10 Sep 2022 19:22:15 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7D56F25297 for ; Sat, 10 Sep 2022 19:22:15 +0200 (CEST) Received: from localhost ([::1]:33718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oX4BK-0004dW-D0 for larch@yhetil.org; Sat, 10 Sep 2022 13:22:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oX4B9-0004LU-2s for guix-patches@gnu.org; Sat, 10 Sep 2022 13:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51629) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oX4B8-0005Xb-Qz for guix-patches@gnu.org; Sat, 10 Sep 2022 13:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oX4B8-0007yK-Mk for guix-patches@gnu.org; Sat, 10 Sep 2022 13:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57718] [PATCH 3/3] daemon: Remove unused function findOutput. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 10 Sep 2022 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57718 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57718@debbugs.gnu.org Cc: Maxime Devos Received: via spool by 57718-submit@debbugs.gnu.org id=B57718.166283049130588 (code B ref 57718); Sat, 10 Sep 2022 17:22:02 +0000 Received: (at 57718) by debbugs.gnu.org; 10 Sep 2022 17:21:31 +0000 Received: from localhost ([127.0.0.1]:40326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oX4Ad-0007xB-A9 for submit@debbugs.gnu.org; Sat, 10 Sep 2022 13:21:31 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:42304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oX4Ab-0007wf-8B for 57718@debbugs.gnu.org; Sat, 10 Sep 2022 13:21:29 -0400 Received: from localhost.localdomain ([188.189.47.0]) by andre.telenet-ops.be with bizsmtp id JHMJ2800200EV6401HMTCC; Sat, 10 Sep 2022 19:21:28 +0200 From: Maxime Devos Date: Sat, 10 Sep 2022 19:20:40 +0200 Message-Id: <20220910172040.6469-3-maximedevos@telenet.be> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220910172040.6469-1-maximedevos@telenet.be> References: <20220910172040.6469-1-maximedevos@telenet.be> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1662830489; bh=nUa0BMUJ271mL0IEw9C+/5SBrDNfS8saspJksUQKJQQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=eNSjJ37O/0aUzL00uClHS2gVBoDrU3h4ghKEorJ9b52WU0z2I6654IOeq5PHB0Qss fne8TDmtva8m6eCUtFI94WrosIJS/49drIK2oyZMWwT4uVEMQDu+qsgrYzocyQPj7n O2LHKU34Lfc1+rv/1DDK9bJWLPvoX/U1VIjvE4BZPy8hAWyo/rk/zfIIYPNGeQi1PF uKEPyCgmFOlCDbIZHth2BkUp1Jjq9OF5lEBjsjiN50IYDPJo3zBb3//DhoemfoHi6P eHneudqY4Ay4HJqyWnATqJF+N6o91gjEjDBM5cTqjMTo+ABa61sVWcqeoZpee11RWk lnHjroPKXmYZw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1662830535; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nUa0BMUJ271mL0IEw9C+/5SBrDNfS8saspJksUQKJQQ=; b=KkwYbjENYK5xXdJpk4aFeO1IDmkyaG9qPFQFXKn21q4Xc0WcqQzCRrM8k2oRb50dTIZsce dwkHk0m2AXoyHBRIP9ty8FNqGbJdBsGp/5ucYf+HK5l4+jnDyfqaH2G5fSvTlbYRGX1jfT N2i3JhN/cmDcHNTwtb/vQqtelNxvgzrFtGErOVsndKSIUAMfjLHbzsb84sgTPXKSi4bx+2 92VE4+WdNJOy0phTA/lutOJ7RCBT/Oy/hjhN8W7Od8yYZAoAaDTw0FY5k4cHKZIyEnnvop ZzS0O6fK4vVwGQBEJ3G4PVmhI2wWlBsq56YCZYYTQmQw5Y7FCt3KJP2rKzTf+Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662830535; a=rsa-sha256; cv=none; b=cCDSCXJVIhxVmA4ixJnMOh2y9njnPuZuz8bGcMCk8GQqc7nv0AYP2mfCkqOxsnestIo07q A2HqvlL/E4oEAzub7CrIaTwjYXJF7HbQ4gaVQMxAyuYezRvoucbgbSZYY1hyR+ltqB/TCr m0Vf4F3hrb2KAvCJKPycMx7f0TBGeRYqBY3og4UYowWOzZMhg8b5cbQOrxeigUtvhKTUlx 8EZqGl8/5nw/gZKXmiqYkXhDzn0t9LNbmxy0RU+ia0mGvve0fWgsrInyY4usS8yT8gVehy q5Wi4GqPmXTvNJDOymc7Jzbd31i77pq4Zc5qM3VR5Ltl99DMFpu56IpCJ90OPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=eNSjJ37O; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.61 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=eNSjJ37O; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7D56F25297 X-Spam-Score: 7.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: Q+2Ip4vwQyN+ * nix/libstore/misc.cc (findOutput): Remove it. * nix/libstore/misc.hh (findOutput): Likewise. --- 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); -- 2.37.2