Skip to content

Commit 68695d0

Browse files
committed
LibWeb: Remove unused underlying_buffer_source function
This function is not used anywhere and will most likely end up causing problems so just remove it.
1 parent f0ee6f7 commit 68695d0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Libraries/LibWeb/WebIDL/AbstractOperations.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,6 @@ bool is_buffer_source_type(JS::Value value)
3333
return is<JS::TypedArrayBase>(object) || is<JS::DataView>(object) || is<JS::ArrayBuffer>(object);
3434
}
3535

36-
GC::Ptr<JS::ArrayBuffer> underlying_buffer_source(JS::Object& buffer_source)
37-
{
38-
if (is<JS::TypedArrayBase>(buffer_source))
39-
return static_cast<JS::TypedArrayBase&>(buffer_source).viewed_array_buffer();
40-
if (is<JS::DataView>(buffer_source))
41-
return static_cast<JS::DataView&>(buffer_source).viewed_array_buffer();
42-
if (is<JS::ArrayBuffer>(buffer_source))
43-
return static_cast<JS::ArrayBuffer&>(buffer_source);
44-
45-
VERIFY_NOT_REACHED();
46-
}
47-
4836
// https://webidl.spec.whatwg.org/#dfn-get-buffer-source-copy
4937
ErrorOr<ByteBuffer> get_buffer_source_copy(JS::Object const& buffer_source)
5038
{

0 commit comments

Comments
 (0)