mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +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
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);
|
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
|
ByteBuffer StringBuilder::to_byte_buffer() const
|
||||||
{
|
{
|
||||||
return ByteBuffer::copy(data(), length());
|
return ByteBuffer::copy(data(), length());
|
||||||
|
|
|
@ -26,7 +26,6 @@ public:
|
||||||
void append(char);
|
void append(char);
|
||||||
void append_code_point(u32);
|
void append_code_point(u32);
|
||||||
void append(const char*, size_t);
|
void append(const char*, size_t);
|
||||||
void appendf(const char*, ...) __attribute__((format(printf, 2, 3)));
|
|
||||||
void appendvf(const char*, va_list);
|
void appendvf(const char*, va_list);
|
||||||
|
|
||||||
void append_escaped_for_json(const StringView&);
|
void append_escaped_for_json(const StringView&);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue