diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-06-04 19:00:19 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-06-04 19:00:19 -0400 |
| commit | 5148e2f78b4d280fed666117415c1d6c3fb4c2a2 (patch) | |
| tree | 3526a45a3b8b6ede80cbb1c5b8a907383c112e9f /src/libstd | |
| parent | 69511c219ccb15732383e20a29527cc589ec3d8f (diff) | |
| download | rust-5148e2f78b4d280fed666117415c1d6c3fb4c2a2.tar.gz rust-5148e2f78b4d280fed666117415c1d6c3fb4c2a2.zip | |
sys: get rid of shape functions
borrowed pointers already implement Eq and Ord with deep comparisons
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys.rs | 14 |
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. * |
