Skip to content

Commit

Permalink
auto merge of #6942 : thestinger/rust/cleanup, r=catamorphism
Browse files Browse the repository at this point in the history
borrowed pointers already implement Eq and Ord with deep comparisons
  • Loading branch information
bors committed Jun 5, 2013
2 parents cf2b00d + 5148e2f commit 9873f67
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/libstd/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 9873f67

Please sign in to comment.