Get rid of Substitution::suffix

This commit is contained in:
Florian Diebold 2021-04-05 21:49:27 +02:00
parent b443e5304e
commit 2a83645e1b
2 changed files with 6 additions and 10 deletions

View file

@ -79,12 +79,6 @@ impl Substitution {
pub fn prefix(&self, n: usize) -> Substitution {
Substitution::intern(self.interned()[..std::cmp::min(self.len(&Interner), n)].into())
}
pub fn suffix(&self, n: usize) -> Substitution {
Substitution::intern(
self.interned()[self.len(&Interner) - std::cmp::min(self.len(&Interner), n)..].into(),
)
}
}
/// Return an index of a parameter in the generic type parameter list by it's id.