aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-01-10 08:00:43 -0800
committerGitHub <noreply@github.com>2017-01-10 08:00:43 -0800
commitb5b5533d675db5e015f0596568c369c6cfc6ebb9 (patch)
treeb510e434d5f53bd0536147677f72c4ba1e293f55 /components/script/dom
parentf674a9db8b7164dae667875c5cf19b3aabb18ef2 (diff)
parent36c14c9819fa845deaea16f2f92e02049b965969 (diff)
downloadservo-b5b5533d675db5e015f0596568c369c6cfc6ebb9.tar.gz
servo-b5b5533d675db5e015f0596568c369c6cfc6ebb9.zip
Auto merge of #14942 - servo:warnings, r=nox
Fix some warnings. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14942) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/urlhelper.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/components/script/dom/urlhelper.rs b/components/script/dom/urlhelper.rs
index ec50b4edb71..5037d7fb733 100644
--- a/components/script/dom/urlhelper.rs
+++ b/components/script/dom/urlhelper.rs
@@ -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())
}