about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-04 17:55:34 -0700
committerbors <bors@rust-lang.org>2013-06-04 17:55:34 -0700
commit9873f67e944f2f9237caa3c670cbaa0ca988c9d0 (patch)
treea3b7c8c4a2e0d2b4875ed1991e62e7505586df25 /src/libstd
parentcf2b00dc8b3af552f823f087276d3ccd40e2550e (diff)
parent5148e2f78b4d280fed666117415c1d6c3fb4c2a2 (diff)
downloadrust-9873f67e944f2f9237caa3c670cbaa0ca988c9d0.tar.gz
rust-9873f67e944f2f9237caa3c670cbaa0ca988c9d0.zip
auto merge of #6942 : thestinger/rust/cleanup, r=catamorphism
borrowed pointers already implement Eq and Ord with deep comparisons
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/libstd/sys.rs b/src/libstd/sys.rs
index 5d020e229e2..583923bc2e3 100644
--- a/src/libstd/sys.rs
+++ b/src/libstd/sys.rs
@@ -52,20 +52,6 @@ pub mod rustrt {
     }
 }
 
-/// Compares contents of two pointers using the default method.
-/// Equivalent to `*x1 == *x2`.  Useful for hashtables.
-pub fn shape_eq<T:Eq>(x1: &T, x2: &T) -> bool {
-    *x1 == *x2
-}
-
-pub fn shape_lt<T:Ord>(x1: &T, x2: &T) -> bool {
-    *x1 < *x2
-}
-
-pub fn shape_le<T:Ord>(x1: &T, x2: &T) -> bool {
-    *x1 <= *x2
-}
-
 /**
  * Returns a pointer to a type descriptor.
  *