Fix some warnings.

This commit is contained in:
Ms2ger 2017-01-10 16:46:25 +01:00
parent dabb79c787
commit 36c14c9819
2 changed files with 1 additions and 4 deletions

View file

@ -11,9 +11,6 @@ use url::quirks;
pub struct UrlHelper;
impl UrlHelper {
pub fn SameOrigin(url_a: &ServoUrl, url_b: &ServoUrl) -> bool {
url_a.origin() == url_b.origin()
}
pub fn Origin(url: &ServoUrl) -> USVString {
USVString(quirks::origin(url.as_url().unwrap()).to_owned())
}