diff --git a/src/util.h b/src/util.h index 0c061848829393..af297b5fb8b572 100644 --- a/src/util.h +++ b/src/util.h @@ -553,11 +553,6 @@ class Utf8Value : public MaybeStackBuffer { public: explicit Utf8Value(v8::Isolate* isolate, v8::Local value); - inline std::string ToString() const { return std::string(out(), length()); } - inline std::string_view ToStringView() const { - return std::string_view(out(), length()); - } - inline bool operator==(const char* a) const { return strcmp(out(), a) == 0; } inline bool operator!=(const char* a) const { return !(*this == a); } }; @@ -571,10 +566,6 @@ class BufferValue : public MaybeStackBuffer { public: explicit BufferValue(v8::Isolate* isolate, v8::Local value); - inline std::string ToString() const { return std::string(out(), length()); } - inline std::string_view ToStringView() const { - return std::string_view(out(), length()); - } inline std::u8string_view ToU8StringView() const { return std::u8string_view(reinterpret_cast(out()), length());