[Pkg-gnupg-commit] [gnupg2] 45/185: gpg: Remove dead code.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Aug 7 11:55:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit 8a9066865688cf17594b2bdde4b260b0ef36d68e
Author: Neal H. Walfield <neal at g10code.com>
Date: Sun Jun 11 13:58:44 2017 +0200
gpg: Remove dead code.
* g10/gpgcompose.c (filter_pop): F->PKTTYPE will never be
PKT_ENCRYPTED_MDC.
(encrypted_pop): Likewise and there is no option --encrypted-mdc-pop.
---
g10/gpgcompose.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/g10/gpgcompose.c b/g10/gpgcompose.c
index e541cfe..a8da54c 100644
--- a/g10/gpgcompose.c
+++ b/g10/gpgcompose.c
@@ -81,7 +81,7 @@ filter_pop (iobuf_t out, int expected_type)
"but current container is a %s container.\n",
pkttype_str (f->pkttype), pkttype_str (expected_type));
- if (f->pkttype == PKT_ENCRYPTED || f->pkttype == PKT_ENCRYPTED_MDC)
+ if (f->pkttype == PKT_ENCRYPTED)
{
err = iobuf_pop_filter (out, f->func, f->context);
if (err)
@@ -2588,12 +2588,6 @@ encrypted_pop (const char *option, int argc, char *argv[], void *cookie)
(void) argc;
(void) argv;
- if (strcmp (option, "--encrypted-pop") == 0)
- filter_pop (out, PKT_ENCRYPTED);
- else if (strcmp (option, "--encrypted-mdc-pop") == 0)
- filter_pop (out, PKT_ENCRYPTED_MDC);
- else
- log_fatal ("%s: option not handled by this function!\n", option);
debug ("Popped encryption container.\n");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list