Skip to content

Commit 4874ab1

Browse files
committed
rm ded code
1 parent 1959ef4 commit 4874ab1

File tree

1 file changed

+1
-18
lines changed
  • crates/formality-types/src/grammar

1 file changed

+1
-18
lines changed

crates/formality-types/src/grammar/ty.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ use crate::{
1313
fold::Fold,
1414
};
1515

16-
use super::{
17-
consts::{Const, ConstData},
18-
AdtId, AssociatedItemId, Binder, FnId, TraitId,
19-
};
16+
use super::{consts::Const, AdtId, AssociatedItemId, Binder, FnId, TraitId};
2017

2118
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
2219
pub struct Ty {
@@ -298,24 +295,10 @@ impl Parameter {
298295
Parameter::Const(v) => v.as_variable(),
299296
}
300297
}
301-
302-
pub fn data(&self) -> ParameterData<'_> {
303-
match self {
304-
Parameter::Ty(v) => ParameterData::Ty(v.data()),
305-
Parameter::Lt(v) => ParameterData::Lt(v.data()),
306-
Parameter::Const(v) => ParameterData::Const(v.data()),
307-
}
308-
}
309298
}
310299

311300
pub type Parameters = Vec<Parameter>;
312301

313-
pub enum ParameterData<'me> {
314-
Ty(&'me TyData),
315-
Lt(&'me LtData),
316-
Const(&'me ConstData),
317-
}
318-
319302
#[term]
320303
#[derive(Copy)]
321304
pub enum ParameterKind {

0 commit comments

Comments
 (0)