aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-07-14 22:43:50 +0200
committereldritch horrors <pennae@lix.systems>2024-07-20 12:33:49 +0000
commitd8c09b583644105c25e3023e98ffceb75333af2e (patch)
treea64b06c54d449a9778766bf15c45e717615b211f /src/libutil
parent22252825c4ea5e8a60eea419ebe352cab184e8b6 (diff)
libutil: remove warnOnce macro
it's only used once, and even that one use is highly questionable. more instances of warnOnce should be much more principled than this has been Change-Id: I5856570c99cb44462e700d753d0c706a5db03c4b
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/logging.hh6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh
index 7990ffce0..96f9f0782 100644
--- a/src/libutil/logging.hh
+++ b/src/libutil/logging.hh
@@ -283,12 +283,6 @@ inline void warn(const std::string & fs, const Args & ... args)
logger->warn(HintFmt(fs, args...).str());
}
-#define warnOnce(haveWarned, args...) \
- if (!haveWarned) { \
- haveWarned = true; \
- warn(args); \
- }
-
void writeToStderr(std::string_view s);
}