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 {
86
86
pub fn ada_get_protocol ( url : * mut ada_url ) -> ada_string ;
87
87
88
88
// Setters
89
- pub fn ada_set_origin ( url : * mut ada_url , input : * const c_char , length : usize ) -> bool ;
90
89
pub fn ada_set_href ( url : * mut ada_url , input : * const c_char , length : usize ) -> bool ;
91
90
pub fn ada_set_username ( url : * mut ada_url , input : * const c_char , length : usize ) -> bool ;
92
91
pub fn ada_set_password ( url : * mut ada_url , input : * const c_char , length : usize ) -> bool ;
@@ -196,10 +195,6 @@ impl Url {
196
195
}
197
196
}
198
197
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
-
203
198
pub fn href ( & self ) -> & str {
204
199
unsafe { ffi:: ada_get_href ( self . url ) } . as_str ( )
205
200
}
You can’t perform that action at this time.
0 commit comments