Skip to content

Commit b247d17

Browse files
committed
bigint: remove unnecessary method implements
1 parent 36d698d commit b247d17

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

src/libextra/num/bigint.rs

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,10 @@ pub struct BigUint {
8888
}
8989

9090
impl Eq for BigUint {
91-
9291
fn eq(&self, other: &BigUint) -> bool { self.equals(other) }
93-
94-
fn ne(&self, other: &BigUint) -> bool { !self.equals(other) }
9592
}
9693

9794
impl TotalEq for BigUint {
98-
9995
fn equals(&self, other: &BigUint) -> bool {
10096
match self.cmp(other) { Equal => true, _ => false }
10197
}
@@ -106,18 +102,6 @@ impl Ord for BigUint {
106102
fn lt(&self, other: &BigUint) -> bool {
107103
match self.cmp(other) { Less => true, _ => false}
108104
}
109-
110-
fn le(&self, other: &BigUint) -> bool {
111-
match self.cmp(other) { Less | Equal => true, _ => false }
112-
}
113-
114-
fn ge(&self, other: &BigUint) -> bool {
115-
match self.cmp(other) { Greater | Equal => true, _ => false }
116-
}
117-
118-
fn gt(&self, other: &BigUint) -> bool {
119-
match self.cmp(other) { Greater => true, _ => false }
120-
}
121105
}
122106

123107
impl TotalOrd for BigUint {
@@ -710,18 +694,6 @@ impl Ord for Sign {
710694
fn lt(&self, other: &Sign) -> bool {
711695
match self.cmp(other) { Less => true, _ => false}
712696
}
713-
714-
fn le(&self, other: &Sign) -> bool {
715-
match self.cmp(other) { Less | Equal => true, _ => false }
716-
}
717-
718-
fn ge(&self, other: &Sign) -> bool {
719-
match self.cmp(other) { Greater | Equal => true, _ => false }
720-
}
721-
722-
fn gt(&self, other: &Sign) -> bool {
723-
match self.cmp(other) { Greater => true, _ => false }
724-
}
725697
}
726698

727699
impl TotalEq for Sign {
@@ -762,8 +734,6 @@ pub struct BigInt {
762734
impl Eq for BigInt {
763735

764736
fn eq(&self, other: &BigInt) -> bool { self.equals(other) }
765-
766-
fn ne(&self, other: &BigInt) -> bool { !self.equals(other) }
767737
}
768738

769739
impl TotalEq for BigInt {
@@ -778,18 +748,6 @@ impl Ord for BigInt {
778748
fn lt(&self, other: &BigInt) -> bool {
779749
match self.cmp(other) { Less => true, _ => false}
780750
}
781-
782-
fn le(&self, other: &BigInt) -> bool {
783-
match self.cmp(other) { Less | Equal => true, _ => false }
784-
}
785-
786-
fn ge(&self, other: &BigInt) -> bool {
787-
match self.cmp(other) { Greater | Equal => true, _ => false }
788-
}
789-
790-
fn gt(&self, other: &BigInt) -> bool {
791-
match self.cmp(other) { Greater => true, _ => false }
792-
}
793751
}
794752

795753
impl TotalOrd for BigInt {

0 commit comments

Comments
 (0)