diff options
Diffstat (limited to 'AK/BufferStream.h')
-rw-r--r-- | AK/BufferStream.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/AK/BufferStream.h b/AK/BufferStream.h index db2907963f..7edc9f6e65 100644 --- a/AK/BufferStream.h +++ b/AK/BufferStream.h @@ -36,15 +36,7 @@ public: m_buffer[m_offset++] = (byte)(value >> 24) & 0xffu; } - void operator<<(const char* str) - { - ssize_t len = strlen(str); - ASSERT(len >= 0); - for (ssize_t i = 0; i < len; ++i) - m_buffer[m_offset++] = str[i]; - } - - void operator<<(const String& value) + void operator<<(const StringView& value) { for (ssize_t i = 0; i < value.length(); ++i) m_buffer[m_offset++] = value[i]; |