mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
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.
This commit is contained in:
parent
033ba43faf
commit
cfeb916e61
Notes:
github-actions[bot]
2025-03-19 12:47:50 +00:00
Author: https://github.com/devgianlu
Commit: cfeb916e61
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3755
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/trflynn89
1 changed files with 0 additions and 12 deletions
|
@ -33,18 +33,6 @@ bool is_buffer_source_type(JS::Value value)
|
||||||
return is<JS::TypedArrayBase>(object) || is<JS::DataView>(object) || is<JS::ArrayBuffer>(object);
|
return is<JS::TypedArrayBase>(object) || is<JS::DataView>(object) || is<JS::ArrayBuffer>(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
GC::Ptr<JS::ArrayBuffer> underlying_buffer_source(JS::Object& buffer_source)
|
|
||||||
{
|
|
||||||
if (is<JS::TypedArrayBase>(buffer_source))
|
|
||||||
return static_cast<JS::TypedArrayBase&>(buffer_source).viewed_array_buffer();
|
|
||||||
if (is<JS::DataView>(buffer_source))
|
|
||||||
return static_cast<JS::DataView&>(buffer_source).viewed_array_buffer();
|
|
||||||
if (is<JS::ArrayBuffer>(buffer_source))
|
|
||||||
return static_cast<JS::ArrayBuffer&>(buffer_source);
|
|
||||||
|
|
||||||
VERIFY_NOT_REACHED();
|
|
||||||
}
|
|
||||||
|
|
||||||
// https://webidl.spec.whatwg.org/#dfn-get-buffer-source-copy
|
// https://webidl.spec.whatwg.org/#dfn-get-buffer-source-copy
|
||||||
ErrorOr<ByteBuffer> get_buffer_source_copy(JS::Object const& buffer_source)
|
ErrorOr<ByteBuffer> get_buffer_source_copy(JS::Object const& buffer_source)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue