File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ pub mod ffi {
8686 pub fn ada_get_protocol ( url : * mut ada_url ) -> ada_string ;
8787
8888 // Setters
89- pub fn ada_set_origin ( url : * mut ada_url , input : * const c_char , length : usize ) -> bool ;
9089 pub fn ada_set_href ( url : * mut ada_url , input : * const c_char , length : usize ) -> bool ;
9190 pub fn ada_set_username ( url : * mut ada_url , input : * const c_char , length : usize ) -> bool ;
9291 pub fn ada_set_password ( url : * mut ada_url , input : * const c_char , length : usize ) -> bool ;
@@ -196,10 +195,6 @@ impl Url {
196195 }
197196 }
198197
199- pub fn set_origin ( & mut self , input : & str ) -> bool {
200- unsafe { ffi:: ada_set_origin ( self . url , input. as_ptr ( ) . cast ( ) , input. len ( ) ) }
201- }
202-
203198 pub fn href ( & self ) -> & str {
204199 unsafe { ffi:: ada_get_href ( self . url ) } . as_str ( )
205200 }
You can’t perform that action at this time.
0 commit comments