remove several 'ne' methods

This commit is contained in:
Eric Martin 2013-08-30 21:53:25 -04:00
parent 8002a09bf9
commit babe20f018
10 changed files with 0 additions and 24 deletions

View File

@ -40,9 +40,6 @@ impl Eq for PkgId {
fn eq(&self, p: &PkgId) -> bool {
p.path == self.path && p.version == self.version
}
fn ne(&self, p: &PkgId) -> bool {
!(self.eq(p))
}
}
impl PkgId {

View File

@ -40,9 +40,6 @@ fn eq(&self, other: &Version) -> bool {
_ => false
}
}
fn ne(&self, other: &Version) -> bool {
!self.eq(other)
}
}
impl Ord for Version {

View File

@ -321,8 +321,6 @@ fn cmp(&self, other: &bool) -> Ordering { to_bit(*self).cmp(&to_bit(*other)) }
impl Eq for bool {
#[inline]
fn eq(&self, other: &bool) -> bool { (*self) == (*other) }
#[inline]
fn ne(&self, other: &bool) -> bool { (*self) != (*other) }
}
#[cfg(not(test))]

View File

@ -397,8 +397,6 @@ fn encode_utf8<'a>(&self, dst: &'a mut [u8]) -> uint {
impl Eq for char {
#[inline]
fn eq(&self, other: &char) -> bool { (*self) == (*other) }
#[inline]
fn ne(&self, other: &char) -> bool { (*self) != (*other) }
}
#[cfg(not(test))]

View File

@ -171,8 +171,6 @@ impl Num for f32 {}
impl Eq for f32 {
#[inline]
fn eq(&self, other: &f32) -> bool { (*self) == (*other) }
#[inline]
fn ne(&self, other: &f32) -> bool { (*self) != (*other) }
}
#[cfg(not(test))]

View File

@ -194,8 +194,6 @@ impl Num for f64 {}
impl Eq for f64 {
#[inline]
fn eq(&self, other: &f64) -> bool { (*self) == (*other) }
#[inline]
fn ne(&self, other: &f64) -> bool { (*self) != (*other) }
}
#[cfg(not(test))]

View File

@ -331,8 +331,6 @@ impl Num for float {}
impl Eq for float {
#[inline]
fn eq(&self, other: &float) -> bool { (*self) == (*other) }
#[inline]
fn ne(&self, other: &float) -> bool { (*self) != (*other) }
}
#[cfg(not(test))]

View File

@ -147,8 +147,6 @@ impl Ord for $T {
impl Eq for $T {
#[inline]
fn eq(&self, other: &$T) -> bool { return (*self) == (*other); }
#[inline]
fn ne(&self, other: &$T) -> bool { return (*self) != (*other); }
}
impl Orderable for $T {

View File

@ -148,8 +148,6 @@ fn lt(&self, other: &$T) -> bool { (*self) < (*other) }
impl Eq for $T {
#[inline]
fn eq(&self, other: &$T) -> bool { return (*self) == (*other); }
#[inline]
fn ne(&self, other: &$T) -> bool { return (*self) != (*other); }
}
impl Orderable for $T {

View File

@ -1180,8 +1180,6 @@ impl Eq for ~str {
fn eq(&self, other: &~str) -> bool {
eq_slice((*self), (*other))
}
#[inline]
fn ne(&self, other: &~str) -> bool { !(*self).eq(other) }
}
impl Eq for @str {
@ -1189,8 +1187,6 @@ impl Eq for @str {
fn eq(&self, other: &@str) -> bool {
eq_slice((*self), (*other))
}
#[inline]
fn ne(&self, other: &@str) -> bool { !(*self).eq(other) }
}
impl<'self> TotalEq for &'self str {