From e568cb8bf85161ea850ca2ae3b11247a0d5dcabd Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Tue, 6 Feb 2024 18:07:20 +0530 Subject: chore(ws): remove unused op_ws_send_pong (#22283) --- ext/websocket/lib.rs | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'ext/websocket/lib.rs') diff --git a/ext/websocket/lib.rs b/ext/websocket/lib.rs index 9b02d0759..e6f382c34 100644 --- a/ext/websocket/lib.rs +++ b/ext/websocket/lib.rs @@ -659,21 +659,6 @@ pub fn op_ws_get_buffered_amount( .get() as u32 } -#[op2(async)] -pub async fn op_ws_send_pong( - state: Rc>, - #[smi] rid: ResourceId, -) -> Result<(), AnyError> { - let resource = state - .borrow_mut() - .resource_table - .get::(rid)?; - let lock = resource.reserve_lock(); - resource - .write_frame(lock, Frame::pong(EMPTY_PAYLOAD.into())) - .await -} - #[op2(async)] pub async fn op_ws_send_ping( state: Rc>, @@ -839,7 +824,6 @@ deno_core::extension!(deno_websocket, op_ws_send_binary_async, op_ws_send_text_async, op_ws_send_ping, - op_ws_send_pong, op_ws_get_buffered_amount, ], esm = [ "01_websocket.js", "02_websocketstream.js" ], -- cgit v1.2.3