Skip to content

Commit 0b2d2d1

Browse files
committed
Remove unused map_slice
1 parent ee51a3c commit 0b2d2d1

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/libsyntax/ptr.rs

-10
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,6 @@ impl<T: 'static> P<T> {
9595
}
9696
}
9797

98-
impl<T: 'static> P<[T]> {
99-
pub fn map_slice<F>(self, f: F) -> P<[T]> where
100-
F: FnOnce(Vec<T>) -> Vec<T>
101-
{
102-
P {
103-
ptr: f(self.ptr.into()).into(),
104-
}
105-
}
106-
}
107-
10898
impl<T: ?Sized> Deref for P<T> {
10999
type Target = T;
110100

0 commit comments

Comments
 (0)