Skip to content

Commit 1fe10bf

Browse files
committed
refactor: remove obsolete code
1 parent 0340b51 commit 1fe10bf

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

crates/hir-ty/src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,6 @@ pub type ConstrainedSubst = chalk_ir::ConstrainedSubst<Interner>;
124124
pub type Guidance = chalk_solve::Guidance<Interner>;
125125
pub type WhereClause = chalk_ir::WhereClause<Interner>;
126126

127-
// FIXME: get rid of this
128-
pub fn subst_prefix(s: &Substitution, n: usize) -> Substitution {
129-
Substitution::from_iter(
130-
Interner,
131-
s.as_slice(Interner)[..std::cmp::min(s.len(Interner), n)].iter().cloned(),
132-
)
133-
}
134-
135127
/// Return an index of a parameter in the generic type parameter list by it's id.
136128
pub fn param_idx(db: &dyn HirDatabase, id: TypeOrConstParamId) -> Option<usize> {
137129
generics(db.upcast(), id.parent).param_idx(id)
@@ -382,7 +374,6 @@ pub(crate) fn fold_tys_and_consts<T: HasInterner<Interner = Interner> + TypeFold
382374
pub fn replace_errors_with_variables<T>(t: &T) -> Canonical<T>
383375
where
384376
T: HasInterner<Interner = Interner> + TypeFoldable<Interner> + Clone,
385-
T: HasInterner<Interner = Interner>,
386377
{
387378
use chalk_ir::{
388379
fold::{FallibleTypeFolder, TypeSuperFoldable},

0 commit comments

Comments
 (0)