AK+LibC: Remove dbgprintf() :^)

Everything has been moved to dbgln() or other AK::Format-based APIs.
We can finally get rid of this old thing.
This commit is contained in:
Andreas Kling 2021-02-20 17:17:30 +01:00
parent 542d8591e0
commit 8d98051551
Notes: sideshowbarker 2024-07-18 22:05:48 +09:00
4 changed files with 0 additions and 20 deletions

View file

@ -62,7 +62,6 @@ TEST_CASE(load_form)
auto& widget_object = widget_value.as_object();
auto widget_class = widget_object.get("class").as_string();
widget_object.for_each_member([&]([[maybe_unused]] auto& property_name, [[maybe_unused]] const JsonValue& property_value) {
//dbgprintf("Set property %s.%s to '%s'\n", widget_class.characters(), property_name.characters(), property_value.serialized().characters());
});
});
}

View file

@ -33,8 +33,6 @@
# include <AK/Types.h>
# include <stdarg.h>
extern "C" {
int vdbgprintf(const char* fmt, va_list) __attribute__((format(printf, 1, 0)));
int dbgprintf(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
int dbgputstr(const char*, ssize_t);
int sprintf(char* buf, const char* fmt, ...) __attribute__((format(printf, 2, 3)));
int snprintf(char* buffer, size_t, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
@ -43,7 +41,6 @@ int snprintf(char* buffer, size_t, const char* fmt, ...) __attribute__((format(p
#else
# include <stdio.h>
# define kprintf printf
# define dbgprintf(...) fprintf(stderr, __VA_ARGS__)
inline int dbgputstr(const char* characters, ssize_t length)
{
fwrite(characters, 1, length, stderr);

View file

@ -841,20 +841,6 @@ void rewind(FILE* stream)
ASSERT(rc == 0);
}
int vdbgprintf(const char* fmt, va_list ap)
{
return printf_internal([](char*&, char ch) { dbgputch(ch); }, nullptr, fmt, ap);
}
int dbgprintf(const char* fmt, ...)
{
va_list ap;
va_start(ap, fmt);
int ret = printf_internal([](char*&, char ch) { dbgputch(ch); }, nullptr, fmt, ap);
va_end(ap);
return ret;
}
ALWAYS_INLINE void stdout_putch(char*&, char ch)
{
putchar(ch);

View file

@ -93,8 +93,6 @@ int vsprintf(char* buffer, const char* fmt, va_list) __attribute__((format(print
int vsnprintf(char* buffer, size_t, const char* fmt, va_list) __attribute__((format(printf, 3, 0)));
int fprintf(FILE*, const char* fmt, ...) __attribute__((format(printf, 2, 3)));
int printf(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
int dbgprintf(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
int vdbgprintf(const char* fmt, va_list ap);
void dbgputch(char);
int dbgputstr(const char*, ssize_t);
int sprintf(char* buffer, const char* fmt, ...) __attribute__((format(printf, 2, 3)));