From 3a0e87e89f57a6082074438e038098bfbe688f2a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 28 Aug 2017 11:11:40 +0100 Subject: [PATCH] Errorcodes: Remove redundant MNG error. --- test/messages.c | 1 - utils/errors.h | 1 - utils/messages.c | 4 ---- 3 files changed, 6 deletions(-) diff --git a/test/messages.c b/test/messages.c index d102e361c..ae82d1ede 100644 --- a/test/messages.c +++ b/test/messages.c @@ -52,7 +52,6 @@ struct message_test_vec_s message_errorcode_test_vec[] = { { NSERROR_SAVE_FAILED, "SaveFailed" }, { NSERROR_CLONE_FAILED, "CloneFailed" }, { NSERROR_INIT_FAILED, "InitFailed" }, - { NSERROR_MNG_ERROR, "Error converting MNG/PNG/JNG: %i" }, { NSERROR_BAD_ENCODING, "BadEncoding" }, { NSERROR_NEED_DATA, "NeedData" }, { NSERROR_ENCODING_CHANGE, "EncodingChanged" }, diff --git a/utils/errors.h b/utils/errors.h index 55f921e48..ad8ae429a 100644 --- a/utils/errors.h +++ b/utils/errors.h @@ -36,7 +36,6 @@ typedef enum { NSERROR_SAVE_FAILED, /**< Failed to save data */ NSERROR_CLONE_FAILED, /**< Failed to clone handle */ NSERROR_INIT_FAILED, /**< Initialisation failed */ - NSERROR_MNG_ERROR, /**< An MNG error occurred */ NSERROR_BMP_ERROR, /**< A BMP error occurred */ NSERROR_GIF_ERROR, /**< A GIF error occurred */ NSERROR_ICO_ERROR, /**< A ICO error occurred */ diff --git a/utils/messages.c b/utils/messages.c index 0c558cdfc..5f55cb964 100644 --- a/utils/messages.c +++ b/utils/messages.c @@ -350,10 +350,6 @@ const char *messages_get_errorcode(nserror code) /* Initialisation failed */ return messages_get_ctx("InitFailed", messages_hash); - case NSERROR_MNG_ERROR: - /* An MNG error occurred */ - return messages_get_ctx("MNGError", messages_hash); - case NSERROR_BAD_ENCODING: /* The character set is unknown */ return messages_get_ctx("BadEncoding", messages_hash);