Remove one more Ty

This commit is contained in:
Aleksey Kladov 2019-12-08 17:50:43 +01:00
parent a1639d0d1e
commit 61c3887b70
3 changed files with 3 additions and 8 deletions

View file

@ -986,11 +986,6 @@ impl Type {
None
}
// FIXME: remove
pub fn into_ty(self) -> Ty {
self.ty.value
}
pub fn as_adt(&self) -> Option<Adt> {
let (adt, _subst) = self.ty.value.as_adt()?;
Some(adt.into())