Remove unused functions

This commit is contained in:
Joscha 2022-08-02 21:10:53 +02:00
parent 1ffe42d868
commit a0b89b3990
3 changed files with 0 additions and 50 deletions

View file

@ -22,10 +22,6 @@ impl<I> Path<I> {
Self(segments)
}
pub fn segments(&self) -> &[I] {
&self.0
}
pub fn push(&mut self, segment: I) {
self.0.push(segment)
}
@ -33,18 +29,6 @@ impl<I> Path<I> {
pub fn first(&self) -> &I {
self.0.first().expect("path is not empty")
}
pub fn first_mut(&mut self) -> &mut I {
self.0.first_mut().expect("path is not empty")
}
pub fn last(&self) -> &I {
self.0.last().expect("path is not empty")
}
pub fn last_mut(&mut self) -> &mut I {
self.0.last_mut().expect("path is not empty")
}
}
impl<I> IntoIterator for Path<I> {