Skip to content

Commit d29c48c

Browse files
committed
fix: remove ada_set_origin
1 parent 6c6c1dc commit d29c48c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)