From: Maxime Devos <maximedevos@telenet.be>
To: 57718@debbugs.gnu.org
Cc: Maxime Devos <maximedevos@telenet.be>
Subject: [bug#57718] [PATCH 2/3] daemon: Remove unused function exportPaths.
Date: Sat, 10 Sep 2022 19:20:39 +0200 [thread overview]
Message-ID: <20220910172040.6469-2-maximedevos@telenet.be> (raw)
In-Reply-To: <20220910172040.6469-1-maximedevos@telenet.be>
* 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<StoreAPI> 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
next prev parent reply other threads:[~2022-09-10 17:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-10 17:18 [bug#57718] [PATCH 0/3] daemon: Remove unused code Maxime Devos
2022-09-10 17:20 ` [bug#57718] [PATCH 1/3] daemon: Remove unused function openStore Maxime Devos
2022-09-10 17:20 ` Maxime Devos [this message]
2022-09-10 17:20 ` [bug#57718] [PATCH 3/3] daemon: Remove unused function findOutput Maxime Devos
2022-09-11 13:54 ` bug#57718: [PATCH 0/3] daemon: Remove unused code Mathieu Othacehe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220910172040.6469-2-maximedevos@telenet.be \
--to=maximedevos@telenet.be \
--cc=57718@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).