From 988680de33f6541a601cf5ea55a9b5c363b41749 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Sep 2017 17:00:02 +0200 Subject: [PATCH] util/StringView: remove unnecessary operator= overloads These will be generated by the compiler automatically. --- src/util/StringView.hxx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/util/StringView.hxx b/src/util/StringView.hxx index 079b8ebef..4d384d4ed 100644 --- a/src/util/StringView.hxx +++ b/src/util/StringView.hxx @@ -64,18 +64,6 @@ struct StringView : ConstBuffer { 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 &&