diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-03-16 00:33:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 00:33:46 +0100 |
commit | bd481bf095f920a419ea55543f911e087f98f36f (patch) | |
tree | b4f97aabfd3734770c5367b1253511a02d86af87 /ext/url | |
parent | 672f66dde1f7ec87282d37e10cac2cdd36e5f181 (diff) |
feat(ops): optional OpState (#13954)
Diffstat (limited to 'ext/url')
-rw-r--r-- | ext/url/lib.rs | 4 | ||||
-rw-r--r-- | ext/url/urlpattern.rs | 2 |
2 files changed, 0 insertions, 6 deletions
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<String>, ) -> Result<UrlParts, AnyError> { @@ -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<UrlParts, AnyError> { @@ -162,7 +160,6 @@ fn url_result( #[op] pub fn op_url_parse_search_params( - _state: &mut deno_core::OpState, args: Option<String>, zero_copy: Option<ZeroCopyBuf>, ) -> Result<Vec<(String, String)>, 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<String, AnyError> { 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<String>, ) -> Result<UrlPattern, AnyError> { @@ -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<String>, ) -> Result<Option<(MatchInput, quirks::Inputs)>, AnyError> { |