From abe81ee08468e63f94b91e484f47c867bcc706d3 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 21 Feb 2022 10:28:43 +0100 Subject: [PATCH] pgcrypto: Remove unused error code PXE_MCRYPT_INTERNAL was apparently never used even when it was added. --- contrib/pgcrypto/px.c | 1 - contrib/pgcrypto/px.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/pgcrypto/px.c b/contrib/pgcrypto/px.c index 4205e9c3ef..360acbd593 100644 --- a/contrib/pgcrypto/px.c +++ b/contrib/pgcrypto/px.c @@ -55,7 +55,6 @@ static const struct error_desc px_err_list[] = { {PXE_ARGUMENT_ERROR, "Illegal argument to function"}, {PXE_UNKNOWN_SALT_ALGO, "Unknown salt algorithm"}, {PXE_BAD_SALT_ROUNDS, "Incorrect number of rounds"}, - {PXE_MCRYPT_INTERNAL, "mcrypt internal error"}, {PXE_NO_RANDOM, "Failed to generate strong random bits"}, {PXE_DECRYPT_FAILED, "Decryption failed"}, {PXE_ENCRYPT_FAILED, "Encryption failed"}, diff --git a/contrib/pgcrypto/px.h b/contrib/pgcrypto/px.h index 17d6f22498..3ed9f711c8 100644 --- a/contrib/pgcrypto/px.h +++ b/contrib/pgcrypto/px.h @@ -58,7 +58,7 @@ #define PXE_ARGUMENT_ERROR -13 #define PXE_UNKNOWN_SALT_ALGO -14 #define PXE_BAD_SALT_ROUNDS -15 -#define PXE_MCRYPT_INTERNAL -16 +/* -16 is unused */ #define PXE_NO_RANDOM -17 #define PXE_DECRYPT_FAILED -18 #define PXE_ENCRYPT_FAILED -19