From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 iPFMAsTHHGPEoQAAbAwnHQ (envelope-from ) for ; Sat, 10 Sep 2022 19:22:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wLsOAsTHHGOO7gAAauVa8A (envelope-from ) for ; Sat, 10 Sep 2022 19:22:12 +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 D59602521A for ; Sat, 10 Sep 2022 19:22:11 +0200 (CEST) Received: from localhost ([::1]:46106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oX4BG-0004MD-VQ for larch@yhetil.org; Sat, 10 Sep 2022 13:22:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oX4B8-0004LL-NA for guix-patches@gnu.org; Sat, 10 Sep 2022 13:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51628) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oX4B8-0005XU-F9 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-0007yD-B6 for guix-patches@gnu.org; Sat, 10 Sep 2022 13:22:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57718] [PATCH 2/3] daemon: Remove unused function exportPaths. 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.166283049130580 (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]:40324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oX4Ac-0007x9-PV 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 1oX4AZ-0007wf-71 for 57718@debbugs.gnu.org; Sat, 10 Sep 2022 13:21:27 -0400 Received: from localhost.localdomain ([188.189.47.0]) by andre.telenet-ops.be with bizsmtp id JHMJ2800200EV6401HMPBi; Sat, 10 Sep 2022 19:21:26 +0200 From: Maxime Devos Date: Sat, 10 Sep 2022 19:20:39 +0200 Message-Id: <20220910172040.6469-2-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1662830486; bh=clO4I+9BDlfs8SMaJjf5+J19F6kz3pWzq50qP/rAYyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bQhI7gbdHXL6wkehITR/QeOxqcez8WJQWKAm3z9/y9UimwrJ25HYb5bjMFEHeX2E5 m03g2/cmHrBK5A5qsJqPuoAMjRUTN7sv7Yb5AzVdHDb4chdawMKYlnX6L4VfxzCk5X 4MPHDeGhkoBXqHAbFTlm+VJy67Mrhn+c8bU8YZMdt9Ky4bD7jn38HNoczJT49fdK+8 +ssdtYTEAp4nM4Yr/+iaZ+jOckizrrXPj0x164/Wqdbl7KiMUx3UslNytzdpT8jVhl RHC8+FZaMfbtjIvmtTakCYVJUk0kC5q4fC+ahsOwwD0r1cjuk7l3ALeKHE+u80v/s3 V7CvgJqm4AZjg== 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=1662830531; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=clO4I+9BDlfs8SMaJjf5+J19F6kz3pWzq50qP/rAYyE=; b=DUHBe4CTsnW6nuQWIxd/jGjactzPsXPDIDUEc77XqTyWmtQW8klbJP5N0Gj5gGxR3T7rYq h6tt6rg8fLt4AVB8EnWc6JoCjqMAjm3nppiq7wrIZv1yT0/K48ADTZLWNRWjrIFz5jvxR2 0O9N5gQ99XmUB2p5fWeB36zGHVNtyg/fQrUDky0kuLlX+hM1PLp66MsEyAr/W/FOX+yGPP gTqMPVODgvAdeE3W4fm6tYJIlxR4xYntwiibBmMxCgSF0vJBLpJvGp/JUXVUpZYyY1k9jj 3A3sAeYXLPHkZqaOj8T8q/jaOMi8GliA5t7Wa7Y5DhF1WueBEbcZMjqmiSYBwg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662830531; a=rsa-sha256; cv=none; b=kV610Pk5wd/xeM0NYHeh3VaHjc0kcV4ca3xbz05puA/tTzLeClk5VNpxPT2A4r4DsyiM4e SSTyGQg0gPd+AQCwCyXamzkFjoUdI/KiOV1q3YDO86AVQPDvPS6cBfJqw23d2lm4VQGiWu jT4wJPrPPa3Wb3hevivPWx/knaDMROeTfFP9L2jHFMnl3aDzqerQ+FGuL59Lsj7T5/g8WR 7/aY86lHW+kQwJuOVLEpnDRHawuEpMqCIdof8BKm1B1A0eqqZyiBjulwR97GELMrZrmvZW I7i829afMy1L4541KEgRQFJVAFgsZNBU8slX7QE91j8FmzB9OR3AX+H/wnzMLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=bQhI7gbd; 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.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=bQhI7gbd; 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: D59602521A X-Spam-Score: 7.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: vg4LRD1rJKy3 * nix/libstore/store-api.cc (exportPaths): Remove it. * nix/libstore/store-api.hh (exportPaths): Likewise. --- nix/libstore/store-api.cc | 11 ----------- nix/libstore/store-api.hh | 7 ------- 2 files changed, 18 deletions(-) diff --git a/nix/libstore/store-api.cc b/nix/libstore/store-api.cc index e3a8ac0995..781fb9e693 100644 --- a/nix/libstore/store-api.cc +++ b/nix/libstore/store-api.cc @@ -236,17 +236,6 @@ string showPaths(const PathSet & paths) return s; } - -void exportPaths(StoreAPI & store, const Paths & paths, - bool sign, Sink & sink) -{ - foreach (Paths::const_iterator, i, paths) { - writeInt(1, sink); - store.exportPath(*i, sign, sink); - } - writeInt(0, sink); -} - Path readStorePath(Source & from) { Path path = readString(from); diff --git a/nix/libstore/store-api.hh b/nix/libstore/store-api.hh index 0693085a25..82a79e50e2 100644 --- a/nix/libstore/store-api.hh +++ b/nix/libstore/store-api.hh @@ -369,13 +369,6 @@ extern std::shared_ptr store; and separated by commas). */ string showPaths(const PathSet & paths); - -/* Export multiple paths in the format expected by ‘nix-store - --import’. */ -void exportPaths(StoreAPI & store, const Paths & paths, - bool sign, Sink & sink); - - MakeError(SubstError, Error) MakeError(BuildError, Error) /* denotes a permanent build failure */ -- 2.37.2