mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Remove StringBuilder::appendf()
All users have been converted to using AK::Format via appendff().
This commit is contained in:
parent
730ed465fe
commit
834b6508d7
Notes:
sideshowbarker
2024-07-18 18:34:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/834b6508d75
2 changed files with 0 additions and 10 deletions
|
@ -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());
|
||||
|
|
|
@ -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&);
|
||||
|
|
Loading…
Reference in a new issue