about summary refs log tree commit diff
path: root/src/libsemver
diff options
context:
space:
mode:
authorOGINO Masanori <masanori.ogino@gmail.com>2014-02-08 14:32:37 +0900
committerOGINO Masanori <masanori.ogino@gmail.com>2014-02-08 15:08:44 +0900
commitdd071eeeb8acc4ef616a18c468e889d2aa7782c2 (patch)
tree5eea958274cfad0e4ff945aa287854eb8195aedb /src/libsemver
parent29e500db8a98a86b3de56688cd9fa6571a840470 (diff)
downloadrust-dd071eeeb8acc4ef616a18c468e889d2aa7782c2.tar.gz
rust-dd071eeeb8acc4ef616a18c468e889d2aa7782c2.zip
Remove redundant Ord implementation for Version.
I've forgot why we keep them, so let me know if you know their reason
for existing.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Diffstat (limited to 'src/libsemver')
-rw-r--r--src/libsemver/lib.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/libsemver/lib.rs b/src/libsemver/lib.rs
index 9c5dd656d42..036d5ae22be 100644
--- a/src/libsemver/lib.rs
+++ b/src/libsemver/lib.rs
@@ -151,19 +151,6 @@ impl cmp::Ord for Version {
                  (_, _) => self.pre < other.pre
              }))
     }
-
-    #[inline]
-    fn le(&self, other: &Version) -> bool {
-        ! (other < self)
-    }
-    #[inline]
-    fn gt(&self, other: &Version) -> bool {
-        other < self
-    }
-    #[inline]
-    fn ge(&self, other: &Version) -> bool {
-        ! (self < other)
-    }
 }
 
 fn take_nonempty_prefix<T:Iterator<char>>(rdr: &mut T, pred: |char| -> bool)