about summary refs log tree commit diff
path: root/src/libstd/net_url.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-09-23 22:25:43 -0700
committerBrian Anderson <banderson@mozilla.com>2012-09-23 23:01:49 -0700
commitafd91f8a5698e7767ddfbf90c665c08dcd4f0de0 (patch)
tree3bc5d52fd888c010ea797f6570c92abe861c183a /src/libstd/net_url.rs
parent2dae768624de87bcec1160bd29c27af1affe7f5f (diff)
downloadrust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.tar.gz
rust-afd91f8a5698e7767ddfbf90c665c08dcd4f0de0.zip
Register snapshots. Remove redundant Eq impls, Makefile hacks
Diffstat (limited to 'src/libstd/net_url.rs')
-rw-r--r--src/libstd/net_url.rs43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs
index 2545661356f..74c603e29e9 100644
--- a/src/libstd/net_url.rs
+++ b/src/libstd/net_url.rs
@@ -317,15 +317,6 @@ fn userinfo_to_str(+userinfo: UserInfo) -> ~str {
     }
 }
 
-#[cfg(stage0)]
-impl UserInfo : Eq {
-    pure fn eq(&&other: UserInfo) -> bool {
-        self.user == other.user && self.pass == other.pass
-    }
-    pure fn ne(&&other: UserInfo) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl UserInfo : Eq {
     pure fn eq(other: &UserInfo) -> bool {
         self.user == (*other).user && self.pass == (*other).pass
@@ -386,22 +377,6 @@ enum Input {
     Unreserved // all other legal characters
 }
 
-#[cfg(stage0)]
-impl Input: Eq {
-    pure fn eq(&&other: Input) -> bool {
-        match (self, other) {
-            (Digit, Digit) => true,
-            (Hex, Hex) => true,
-            (Unreserved, Unreserved) => true,
-            (Digit, _) => false,
-            (Hex, _) => false,
-            (Unreserved, _) => false
-        }
-    }
-    pure fn ne(&&other: Input) -> bool { !self.eq(other) }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl Input : Eq {
     pure fn eq(other: &Input) -> bool {
         match (self, (*other)) {
@@ -744,24 +719,6 @@ impl Url: to_str::ToStr {
     }
 }
 
-#[cfg(stage0)]
-impl Url: Eq {
-    pure fn eq(&&other: Url) -> bool {
-        self.scheme == other.scheme
-            && self.user == other.user
-            && self.host == other.host
-            && self.port == other.port
-            && self.path == other.path
-            && self.query == other.query
-            && self.fragment == other.fragment
-    }
-
-    pure fn ne(&&other: Url) -> bool {
-        !self.eq(other)
-    }
-}
-#[cfg(stage1)]
-#[cfg(stage2)]
 impl Url : Eq {
     pure fn eq(other: &Url) -> bool {
         self.scheme == (*other).scheme