From bd481bf095f920a419ea55543f911e087f98f36f Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Wed, 16 Mar 2022 00:33:46 +0100 Subject: feat(ops): optional OpState (#13954) --- ext/url/lib.rs | 4 ---- ext/url/urlpattern.rs | 2 -- 2 files changed, 6 deletions(-) (limited to 'ext/url') diff --git a/ext/url/lib.rs b/ext/url/lib.rs index 4187b7664..0fa389fb0 100644 --- a/ext/url/lib.rs +++ b/ext/url/lib.rs @@ -58,7 +58,6 @@ type UrlParts = String; /// optional part to "set" after parsing. Return `UrlParts`. #[op] pub fn op_url_parse( - _state: &mut deno_core::OpState, href: String, base_href: Option, ) -> Result { @@ -92,7 +91,6 @@ pub enum UrlSetter { #[op] pub fn op_url_reparse( - _state: &mut deno_core::OpState, href: String, setter_opts: (UrlSetter, String), ) -> Result { @@ -162,7 +160,6 @@ fn url_result( #[op] pub fn op_url_parse_search_params( - _state: &mut deno_core::OpState, args: Option, zero_copy: Option, ) -> Result, AnyError> { @@ -182,7 +179,6 @@ pub fn op_url_parse_search_params( #[op] pub fn op_url_stringify_search_params( - _state: &mut deno_core::OpState, args: Vec<(String, String)>, ) -> Result { let search = form_urlencoded::Serializer::new(String::new()) diff --git a/ext/url/urlpattern.rs b/ext/url/urlpattern.rs index 4e6b4e4a0..99fd21664 100644 --- a/ext/url/urlpattern.rs +++ b/ext/url/urlpattern.rs @@ -9,7 +9,6 @@ use urlpattern::quirks::UrlPattern; #[op] pub fn op_urlpattern_parse( - _state: &mut deno_core::OpState, input: StringOrInit, base_url: Option, ) -> Result { @@ -27,7 +26,6 @@ pub fn op_urlpattern_parse( #[op] pub fn op_urlpattern_process_match_input( - _state: &mut deno_core::OpState, input: StringOrInit, base_url: Option, ) -> Result, AnyError> { -- cgit v1.2.3