Remove unused functions
This commit is contained in:
parent
1ffe42d868
commit
a0b89b3990
3 changed files with 0 additions and 50 deletions
16
src/store.rs
16
src/store.rs
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue