AK: Remove StringBuilder::appendf()

All users have been converted to using AK::Format via appendff().
This commit is contained in:
Andreas Kling 2021-05-07 21:09:58 +02:00
parent 730ed465fe
commit 834b6508d7
Notes: sideshowbarker 2024-07-18 18:34:58 +09:00
2 changed files with 0 additions and 10 deletions

View file

@ -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());

View file

@ -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&);