util/StringView: remove unnecessary operator= overloads

These will be generated by the compiler automatically.
This commit is contained in:
Max Kellermann 2017-09-12 17:00:02 +02:00
parent cdf92c6300
commit 988680de33

View File

@ -64,18 +64,6 @@ struct StringView : ConstBuffer<char> {
return (pointer_type)memchr(data, ch, size);
}
StringView &operator=(std::nullptr_t) noexcept {
data = nullptr;
size = 0;
return *this;
}
StringView &operator=(pointer_type _data) noexcept {
data = _data;
size = _data != nullptr ? strlen(_data) : 0;
return *this;
}
gcc_pure
bool StartsWith(StringView needle) const noexcept {
return size >= needle.size &&