From 162b70fb7e39293025ee8eaf58c50fa4ba30456c Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 29 Aug 2022 19:39:00 +0300 Subject: r-gpgme: drop macro for error handling --- src/r-gpgme.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/r-gpgme.c b/src/r-gpgme.c index cfe6882..eed2db1 100644 --- a/src/r-gpgme.c +++ b/src/r-gpgme.c @@ -27,27 +27,6 @@ #include "r-gpgme.h" #include "output.h" -#ifdef DEBUG - #define ret_if_err(ret, err) \ - do { \ - if(err != GPG_ERR_NO_ERROR) { \ - fprintf(stderr, "%s:%d: %s: %s\n", __FILE__, \ - __LINE__, gpgme_strsource(err), \ - gpgme_strerror(err)); \ - return ret; \ - } \ - } while(0) -#else - #define ret_if_err(ret, err) \ - do { \ - if(err != GPG_ERR_NO_ERROR) { \ - fprintf(stderr, "%s: %s\n", \ - gpgme_strsource(err), gpgme_strerror(err)); \ - return ret; \ - } \ - } while(0) -#endif - static void init_gpgme() { /* The GPGME library communicates with child processes (the -- cgit v1.2.3-18-g5258