1
Fork 0

remove duplicate methods in impls

This commit is contained in:
Corey Richardson 2014-03-18 12:04:23 -04:00 committed by Alex Crichton
parent 1607871dc2
commit f9e0baa19a
2 changed files with 1 additions and 4 deletions

View file

@ -1312,7 +1312,7 @@ impl ::Decoder for Decoder {
value => self.expected("number", &value)
}
}
fn read_f32(&mut self) -> f32 { self.read_f64() as f32 }
fn read_f32(&mut self) -> f32 { self.read_f64() as f32 }
fn read_char(&mut self) -> char {

View file

@ -2664,9 +2664,6 @@ impl<'a> StrSlice<'a> for &'a str {
return multibyte_char_range_at(*self, i);
}
#[inline]
fn char_at(&self, i: uint) -> char { self.char_range_at(i).ch }
#[inline]
fn char_range_at_reverse(&self, start: uint) -> CharRange {
let mut prev = start;