Skip to content

Commit 4dd32c7

Browse files
committed
---
yaml --- r: 77648 b: refs/heads/master c: b247d17 h: refs/heads/master v: v3
1 parent b8bb182 commit 4dd32c7

File tree

2 files changed

+1
-43
lines changed

2 files changed

+1
-43
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 36d698d544953c7fc03a8bf10ea9423e47732ab8
2+
refs/heads/master: b247d176297f85c01e89c64d6058dbdd539cb95a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 60fba4d7d677ec098e6a43014132fe99f7547363
55
refs/heads/try: ebfe63cd1c0b5d23f7ea60c69b4fde2e30cfd42a

trunk/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)