From 834b6508d75efdbaeb4f8e425c2750dd3e147221 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 7 May 2021 21:09:58 +0200 Subject: [PATCH] AK: Remove StringBuilder::appendf() All users have been converted to using AK::Format via appendff(). --- AK/StringBuilder.cpp | 9 --------- AK/StringBuilder.h | 1 - 2 files changed, 10 deletions(-) diff --git a/AK/StringBuilder.cpp b/AK/StringBuilder.cpp index 6c1f3040cdc..aa0329a947d 100644 --- a/AK/StringBuilder.cpp +++ b/AK/StringBuilder.cpp @@ -69,15 +69,6 @@ void StringBuilder::appendvf(const char* fmt, va_list ap) nullptr, fmt, ap); } -void StringBuilder::appendf(const char* fmt, ...) -{ - va_list ap; - va_start(ap, fmt); - will_append(strlen(fmt)); - appendvf(fmt, ap); - va_end(ap); -} - ByteBuffer StringBuilder::to_byte_buffer() const { return ByteBuffer::copy(data(), length()); diff --git a/AK/StringBuilder.h b/AK/StringBuilder.h index b1b21b95665..e97b76b6af7 100644 --- a/AK/StringBuilder.h +++ b/AK/StringBuilder.h @@ -26,7 +26,6 @@ public: void append(char); void append_code_point(u32); void append(const char*, size_t); - void appendf(const char*, ...) __attribute__((format(printf, 2, 3))); void appendvf(const char*, va_list); void append_escaped_for_json(const StringView&);