Commit 96b557c1 authored by Max Kellermann's avatar Max Kellermann

util/StringView: remove methods SetEmpty(), Empty()

parent ebdb7c8d
......@@ -230,7 +230,7 @@ void
TagBuilder::AddEmptyItem(TagType type)
{
tag_pool_lock.lock();
auto i = tag_pool_get_item(type, StringView::Empty());
auto i = tag_pool_get_item(type, "");
tag_pool_lock.unlock();
items.push_back(i);
......
......@@ -49,15 +49,6 @@ struct StringView : ConstBuffer<char> {
constexpr StringView(std::nullptr_t n) noexcept
:ConstBuffer(n) {}
static constexpr StringView Empty() noexcept {
return StringView("", size_t(0));
}
void SetEmpty() noexcept {
data = "";
size = 0;
}
gcc_pure
pointer_type Find(value_type ch) const noexcept {
return StringFind(data, ch, size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment