From 5148e2f78b4d280fed666117415c1d6c3fb4c2a2 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 4 Jun 2013 19:00:19 -0400 Subject: [PATCH] sys: get rid of shape functions borrowed pointers already implement Eq and Ord with deep comparisons --- src/libstd/sys.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/libstd/sys.rs b/src/libstd/sys.rs index 5d020e229e28d..583923bc2e3aa 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(x1: &T, x2: &T) -> bool { - *x1 == *x2 -} - -pub fn shape_lt(x1: &T, x2: &T) -> bool { - *x1 < *x2 -} - -pub fn shape_le(x1: &T, x2: &T) -> bool { - *x1 <= *x2 -} - /** * Returns a pointer to a type descriptor. *