Skip to content

Commit dd071ee

Browse files
committed
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 <[email protected]>
1 parent 29e500d commit dd071ee

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/libsemver/lib.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,6 @@ impl cmp::Ord for Version {
151151
(_, _) => self.pre < other.pre
152152
}))
153153
}
154-
155-
#[inline]
156-
fn le(&self, other: &Version) -> bool {
157-
! (other < self)
158-
}
159-
#[inline]
160-
fn gt(&self, other: &Version) -> bool {
161-
other < self
162-
}
163-
#[inline]
164-
fn ge(&self, other: &Version) -> bool {
165-
! (self < other)
166-
}
167154
}
168155

169156
fn take_nonempty_prefix<T:Iterator<char>>(rdr: &mut T, pred: |char| -> bool)

0 commit comments

Comments
 (0)