[meta] Remove OperandKind::imm_name method;

This commit is contained in:
Benjamin Bouvier
2019-10-29 15:24:52 +01:00
parent ae3ea47dbd
commit 4f5b0689f3
2 changed files with 7 additions and 16 deletions

View File

@@ -172,15 +172,6 @@ impl OperandKind {
| OperandKindFields::VariableArgs => None,
}
}
pub fn imm_name(&self) -> Option<&str> {
match self.fields {
OperandKindFields::ImmEnum(_)
| OperandKindFields::ImmValue
| OperandKindFields::EntityRef => Some(&self.name),
_ => None,
}
}
}
impl Into<OperandKind> for &TypeVar {