Remove unused code from rustc_ast

This commit is contained in:
est31 2020-10-09 11:20:56 +02:00
parent d7791f485b
commit 49d4a756f1
5 changed files with 0 additions and 64 deletions

View file

@ -54,16 +54,6 @@ pub enum DelimToken {
NoDelim,
}
impl DelimToken {
pub fn len(self) -> usize {
if self == NoDelim { 0 } else { 1 }
}
pub fn is_empty(self) -> bool {
self == NoDelim
}
}
#[derive(Clone, Copy, PartialEq, Encodable, Decodable, Debug, HashStable_Generic)]
pub enum LitKind {
Bool, // AST only, must never appear in a `Token`