From 86833ea28616fd7bb6d16582aea7996549b4b873 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sun, 9 Jun 2013 03:23:05 -0400 Subject: cmp: remove duplicate free functions --- src/libstd/cmp.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/cmp.rs b/src/libstd/cmp.rs index 55530f181a1..ce6a04c3688 100644 --- a/src/libstd/cmp.rs +++ b/src/libstd/cmp.rs @@ -172,36 +172,6 @@ pub trait Ord { fn gt(&self, other: &Self) -> bool; } -#[inline(always)] -pub fn lt(v1: &T, v2: &T) -> bool { - (*v1).lt(v2) -} - -#[inline(always)] -pub fn le(v1: &T, v2: &T) -> bool { - (*v1).le(v2) -} - -#[inline(always)] -pub fn eq(v1: &T, v2: &T) -> bool { - (*v1).eq(v2) -} - -#[inline(always)] -pub fn ne(v1: &T, v2: &T) -> bool { - (*v1).ne(v2) -} - -#[inline(always)] -pub fn ge(v1: &T, v2: &T) -> bool { - (*v1).ge(v2) -} - -#[inline(always)] -pub fn gt(v1: &T, v2: &T) -> bool { - (*v1).gt(v2) -} - /// The equivalence relation. Two values may be equivalent even if they are /// of different types. The most common use case for this relation is /// container types; e.g. it is often desirable to be able to use `&str` -- cgit 1.4.1-3-g733a5