Remove unused map_slice

This commit is contained in:
Taylor Cramer 2018-06-22 12:12:53 -07:00
parent ee51a3c10a
commit 0b2d2d1dc5

View File

@ -95,16 +95,6 @@ impl<T: 'static> P<T> {
}
}
impl<T: 'static> P<[T]> {
pub fn map_slice<F>(self, f: F) -> P<[T]> where
F: FnOnce(Vec<T>) -> Vec<T>
{
P {
ptr: f(self.ptr.into()).into(),
}
}
}
impl<T: ?Sized> Deref for P<T> {
type Target = T;