Truly independent web browser
LibWeb: Remove dead transfer helpers
Shannon Booth5baa2d59ea89
diff --git a/Libraries/LibWeb/HTML/MessagePort.cpp b/Libraries/LibWeb/HTML/MessagePort.cppindex de4781134d5..06db6773e7f 100644--- a/Libraries/LibWeb/HTML/MessagePort.cpp+++ b/Libraries/LibWeb/HTML/MessagePort.cpp@@ -31,7 +31,6 @@ void web_rust_message_port_fail_next_transfer_for_testing(void* port);void web_rust_message_port_disentangle_ports_of_realm(JSVM*, void* realm);// The entry points of the generated bindings of the interface.-bool web_rust_message_port_is_detached(void* port);JSCompletion web_rust_message_port_transfer_steps(JSVM*, void* realm, void* port, Bindings::RustTransferDataWriter*);JSCompletion web_rust_message_port_transfer_receiving_steps(JSVM*, void* realm, Bindings::RustTransferDataReader*);}@@ -105,11 +104,6 @@ WebIDL::ExceptionOr<void> MessagePort::transfer_steps(JS::Realm& realm, Transferreturn {};}-bool MessagePort::is_detached() const-{- return web_rust_message_port_is_detached(const_cast<MessagePort*>(this));-}-size_t MessagePort::pending_outgoing_message_count() const{return web_rust_message_port_pending_outgoing_message_count(const_cast<MessagePort*>(this));diff --git a/Libraries/LibWeb/HTML/MessagePort.h b/Libraries/LibWeb/HTML/MessagePort.hindex 78dc901345d..b57f85dd218 100644--- a/Libraries/LibWeb/HTML/MessagePort.h+++ b/Libraries/LibWeb/HTML/MessagePort.h@@ -51,9 +51,6 @@ public:// https://html.spec.whatwg.org/multipage/web-messaging.html#message-ports:transfer-stepsWebIDL::ExceptionOr<void> transfer_steps(JS::Realm&, TransferDataEncoder&);- // https://html.spec.whatwg.org/multipage/structured-data.html#detached- bool is_detached() const;-size_t pending_outgoing_message_count() const;void fail_next_transfer_for_testing();};diff --git a/Meta/Generators/libweb_bindings/structured_serialize.py b/Meta/Generators/libweb_bindings/structured_serialize.pyindex 3eb6229ce62..804e06f9014 100644--- a/Meta/Generators/libweb_bindings/structured_serialize.py+++ b/Meta/Generators/libweb_bindings/structured_serialize.py@@ -294,10 +294,7 @@ WebIDL::ExceptionOr<GC::Ref<JS::HostObject>> create_transferred_platform_object(""")continue- if interface.name == "MessagePort":- out.write(""" auto transferable = HTML::MessagePort::create(Bindings::impl_from<DOM::EventTarget>(target_realm.global_object()));-""")- elif interface.name == "OffscreenCanvas":+ if interface.name == "OffscreenCanvas":out.write(""" auto* global_scope = HTML::window_or_worker_global_scope_from_global_object(target_realm.global_object());VERIFY(global_scope);auto transferable = HTML::OffscreenCanvas::create(global_scope->this_impl(), 0, 0);