diff --git a/AK/Tests/TestJSON.cpp b/AK/Tests/TestJSON.cpp index 5d910b8b4b..447e5acf33 100644 --- a/AK/Tests/TestJSON.cpp +++ b/AK/Tests/TestJSON.cpp @@ -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()); }); }); } diff --git a/AK/kstdio.h b/AK/kstdio.h index 6702a47e30..d1c84bf79b 100644 --- a/AK/kstdio.h +++ b/AK/kstdio.h @@ -33,8 +33,6 @@ # include # include 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 # define kprintf printf -# define dbgprintf(...) fprintf(stderr, __VA_ARGS__) inline int dbgputstr(const char* characters, ssize_t length) { fwrite(characters, 1, length, stderr); diff --git a/Userland/Libraries/LibC/stdio.cpp b/Userland/Libraries/LibC/stdio.cpp index c609894c45..cecb0aef2a 100644 --- a/Userland/Libraries/LibC/stdio.cpp +++ b/Userland/Libraries/LibC/stdio.cpp @@ -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); diff --git a/Userland/Libraries/LibC/stdio.h b/Userland/Libraries/LibC/stdio.h index 0ad52afc96..cc76741d0b 100644 --- a/Userland/Libraries/LibC/stdio.h +++ b/Userland/Libraries/LibC/stdio.h @@ -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)));