From 7427b15c38c13a70c281477646aef7c28c59b3f9 Mon Sep 17 00:00:00 2001 From: "David J. Gardner" Date: Tue, 15 Oct 2024 12:30:28 -0700 Subject: [PATCH] remove unused logging macros --- src/sundials/sundials_logger_impl.h | 36 ----------------------------- 1 file changed, 36 deletions(-) diff --git a/src/sundials/sundials_logger_impl.h b/src/sundials/sundials_logger_impl.h index 892b84c7c1..ddded4f470 100644 --- a/src/sundials/sundials_logger_impl.h +++ b/src/sundials/sundials_logger_impl.h @@ -50,42 +50,6 @@ comma when no additional arguments are needed. */ -#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_ERROR -#define SUNLogError(logger, label, /* msg_txt, */...) \ - SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_ERROR, __func__, label, \ - /* msg_txt, */ __VA_ARGS__) -#define SUNLogErrorIf(condition, logger, label, /* msg_txt, */...) \ - do { \ - if ((condition)) \ - { \ - SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_ERROR, __func__, label, \ - /* msg_txt, */ __VA_ARGS__); \ - } \ - } \ - while (0) -#else -#define SUNLogError(logger, label, /* msg_txt, */...) -#define SUNLogErrorIf(condition, logger, label, /* msg_txt, */...) -#endif - -#if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_WARNING -#define SUNLogWarning(logger, label, /* msg_txt, */...) \ - SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_WARNING, __func__, label, \ - /* msg_txt, */ __VA_ARGS__) -#define SUNLogWarningIf(condition, logger, label, /* msg_txt, */...) \ - do { \ - if ((condition)) \ - { \ - SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_WARNING, __func__, label, \ - /* msg_txt, */ __VA_ARGS__); \ - } \ - } \ - while (0) -#else -#define SUNLogWarning(logger, label, /* msg_txt, */...) -#define SUNLogWarningIf(condition, logger, label, /* msg_txt, */...) -#endif - #if SUNDIALS_LOGGING_LEVEL >= SUNDIALS_LOGGING_INFO #define SUNLogInfo(logger, label, /* msg_txt, */...) \ SUNLogger_QueueMsg(logger, SUN_LOGLEVEL_INFO, __func__, label, \