Skip to content

Commit 4865019

Browse files
committed
vec: rm redundant is_empty implementations
1 parent fe047e0 commit 4865019

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/libstd/vec.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -691,12 +691,6 @@ impl<T> Vector<T> for @[T] {
691691
}
692692

693693
impl<'self, T> Container for &'self [T] {
694-
/// Returns true if a vector contains no elements
695-
#[inline]
696-
fn is_empty(&self) -> bool {
697-
self.as_imm_buf(|_p, len| len == 0u)
698-
}
699-
700694
/// Returns the length of a vector
701695
#[inline]
702696
fn len(&self) -> uint {
@@ -705,12 +699,6 @@ impl<'self, T> Container for &'self [T] {
705699
}
706700

707701
impl<T> Container for ~[T] {
708-
/// Returns true if a vector contains no elements
709-
#[inline]
710-
fn is_empty(&self) -> bool {
711-
self.as_imm_buf(|_p, len| len == 0u)
712-
}
713-
714702
/// Returns the length of a vector
715703
#[inline]
716704
fn len(&self) -> uint {

0 commit comments

Comments
 (0)