diff --git a/Libraries/LibWeb/WebIDL/AbstractOperations.cpp b/Libraries/LibWeb/WebIDL/AbstractOperations.cpp index f77e6da6d6f..31ed6824615 100644 --- a/Libraries/LibWeb/WebIDL/AbstractOperations.cpp +++ b/Libraries/LibWeb/WebIDL/AbstractOperations.cpp @@ -33,18 +33,6 @@ bool is_buffer_source_type(JS::Value value) return is(object) || is(object) || is(object); } -GC::Ptr underlying_buffer_source(JS::Object& buffer_source) -{ - if (is(buffer_source)) - return static_cast(buffer_source).viewed_array_buffer(); - if (is(buffer_source)) - return static_cast(buffer_source).viewed_array_buffer(); - if (is(buffer_source)) - return static_cast(buffer_source); - - VERIFY_NOT_REACHED(); -} - // https://webidl.spec.whatwg.org/#dfn-get-buffer-source-copy ErrorOr get_buffer_source_copy(JS::Object const& buffer_source) {