diff --git a/src/libsyntax/ptr.rs b/src/libsyntax/ptr.rs index ed10857e4c56..25d916af77d2 100644 --- a/src/libsyntax/ptr.rs +++ b/src/libsyntax/ptr.rs @@ -95,16 +95,6 @@ impl P { } } -impl P<[T]> { - pub fn map_slice(self, f: F) -> P<[T]> where - F: FnOnce(Vec) -> Vec - { - P { - ptr: f(self.ptr.into()).into(), - } - } -} - impl Deref for P { type Target = T;