summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/pgp.c
diff options
context:
space:
mode:
authorDaniel Gustafsson2022-09-14 19:58:30 +0000
committerDaniel Gustafsson2022-09-14 19:58:30 +0000
commit1d3566f1b2a8cf518ec26322023d243b288a90aa (patch)
treeecf34b74a0f8012d86c4a80a20d00c272ff4dd0d /contrib/pgcrypto/pgp.c
parent5f84647ee1b25532cf5ea06801a4f36706a0cb96 (diff)
pgcrypto: Remove unused code
The mbuf_tell, mbuf_rewind and pgp_get_cipher_name functions were introduced in commit e94dd6ab91, but were never used, so remove. Reviewed-by: Aleksander Alekseev <aleksander@timescale.com> Discussion: https://postgr.es/m/FCF3F14E-17D5-41F2-AC58-0A97B341193A@yesql.se
Diffstat (limited to 'contrib/pgcrypto/pgp.c')
-rw-r--r--contrib/pgcrypto/pgp.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/contrib/pgcrypto/pgp.c b/contrib/pgcrypto/pgp.c
index 3e9c2fef9bc..8a6a6c2adf1 100644
--- a/contrib/pgcrypto/pgp.c
+++ b/contrib/pgcrypto/pgp.c
@@ -133,16 +133,6 @@ pgp_get_digest_name(int code)
return NULL;
}
-const char *
-pgp_get_cipher_name(int code)
-{
- const struct cipher_info *i = get_cipher_info(code);
-
- if (i != NULL)
- return i->name;
- return NULL;
-}
-
int
pgp_get_cipher_key_size(int code)
{