util/AllocatedString: remove Null(), IsNull()

This commit is contained in:
Max Kellermann
2021-01-21 20:07:14 +01:00
parent 67760f5283
commit dc9103befe
5 changed files with 5 additions and 13 deletions

View File

@@ -85,10 +85,6 @@ public:
return BasicAllocatedString(value);
}
static BasicAllocatedString Null() noexcept {
return nullptr;
}
static BasicAllocatedString Empty() {
auto p = new value_type[1];
p[0] = SENTINEL;
@@ -120,10 +116,6 @@ public:
return value != nullptr;
}
constexpr bool IsNull() const noexcept {
return value == nullptr;
}
operator string_view() const noexcept {
return value != nullptr
? string_view(value)