]> wimlib.net Git - wimlib/commitdiff
error.h: cleanup debris from removal of --disable-error-messages
authorEric Biggers <ebiggers3@gmail.com>
Thu, 30 Mar 2023 07:00:55 +0000 (00:00 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 30 Mar 2023 07:16:50 +0000 (00:16 -0700)
include/wimlib/error.h

index e332903ff21b9cb9f8ff06de2044855e07cce70b..0e44d3343a828bf5b72bdda2e4b88418686b81ff 100644 (file)
@@ -7,12 +7,6 @@
 #include "wimlib/compiler.h"
 #include "wimlib/types.h"
 
-static inline int _format_attribute(printf, 1, 2)
-dummy_tprintf(const tchar *format, ...)
-{
-       return 0;
-}
-
 void
 wimlib_error(const tchar *format, ...)
        _format_attribute(printf, 1, 2) _cold_attribute;
@@ -28,10 +22,12 @@ wimlib_warning(const tchar *format, ...)
 void
 wimlib_warning_with_errno(const tchar *format, ...)
                _format_attribute(printf, 1, 2) _cold_attribute;
-#  define ERROR(format, ...)                   wimlib_error(T(format), ## __VA_ARGS__)
-#  define ERROR_WITH_ERRNO(format, ...)                wimlib_error_with_errno(T(format), ## __VA_ARGS__)
-#  define WARNING(format, ...)                 wimlib_warning(T(format), ## __VA_ARGS__)
-#  define WARNING_WITH_ERRNO(format, ...)      wimlib_warning_with_errno(T(format), ## __VA_ARGS__)
+
+#define ERROR(format, ...)             wimlib_error(T(format), ## __VA_ARGS__)
+#define ERROR_WITH_ERRNO(format, ...)  wimlib_error_with_errno(T(format), ## __VA_ARGS__)
+#define WARNING(format, ...)           wimlib_warning(T(format), ## __VA_ARGS__)
+#define WARNING_WITH_ERRNO(format, ...)        wimlib_warning_with_errno(T(format), ## __VA_ARGS__)
+
 extern bool wimlib_print_errors;
 extern FILE *wimlib_error_file;