Skip to content

Commit 9873f67

Browse files
committed
auto merge of #6942 : thestinger/rust/cleanup, r=catamorphism
borrowed pointers already implement Eq and Ord with deep comparisons
2 parents cf2b00d + 5148e2f commit 9873f67

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/libstd/sys.rs

-14
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,6 @@ pub mod rustrt {
5252
}
5353
}
5454

55-
/// Compares contents of two pointers using the default method.
56-
/// Equivalent to `*x1 == *x2`. Useful for hashtables.
57-
pub fn shape_eq<T:Eq>(x1: &T, x2: &T) -> bool {
58-
*x1 == *x2
59-
}
60-
61-
pub fn shape_lt<T:Ord>(x1: &T, x2: &T) -> bool {
62-
*x1 < *x2
63-
}
64-
65-
pub fn shape_le<T:Ord>(x1: &T, x2: &T) -> bool {
66-
*x1 <= *x2
67-
}
68-
6955
/**
7056
* Returns a pointer to a type descriptor.
7157
*

0 commit comments

Comments
 (0)