From 98ef4665a5b7623a111293eb85e92921e0df6c7c Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Wed, 1 Apr 2020 15:23:20 -0400 Subject: [PATCH] remove dead token code --- src/token.rs | 58 ---------------------------------------------------- 1 file changed, 58 deletions(-) diff --git a/src/token.rs b/src/token.rs index e27ed4a..b6cff32 100644 --- a/src/token.rs +++ b/src/token.rs @@ -34,61 +34,3 @@ impl IsWhitespace for &Token { false } } - -// impl IsComment for Token { -// fn is_comment(&self) -> bool { -// if let TokenKind::MultilineComment(_) = self.kind { -// return true; -// } -// false -// } -// } - -// impl IsComment for &Token { -// fn is_comment(&self) -> bool { -// if let TokenKind::MultilineComment(_) = self.kind { -// return true; -// } -// false -// } -// } - -// #[derive(Clone, Debug, Eq, PartialEq)] -// pub(crate) enum TokenKind { -// Ident(String), -// Symbol(Symbol), -// AtRule(AtRuleKind), -// Keyword(Keyword), -// Number(String), -// Whitespace(Whitespace), -// Variable(String), -// Op(Op), -// MultilineComment(String), -// Interpolation, -// Error(SassError), -// } - -// impl TokenKind { -// pub fn is_symbol(&self, s: Symbol) -> bool { -// self == &TokenKind::Symbol(s) -// } -// } - -// impl fmt::Display for TokenKind { -// #[inline] -// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { -// match self { -// TokenKind::Ident(s) | TokenKind::Number(s) => write!(f, "{}", s), -// TokenKind::Symbol(s) => write!(f, "{}", s), -// TokenKind::AtRule(s) => write!(f, "{}", s), -// TokenKind::Op(s) => write!(f, "{}", s), -// TokenKind::Whitespace(s) => write!(f, "{}", s), -// TokenKind::Keyword(kw) => write!(f, "{}", kw), -// TokenKind::MultilineComment(s) => write!(f, "/*{}*/", s), -// TokenKind::Variable(s) => write!(f, "{}", s), -// TokenKind::Interpolation | TokenKind::Error(..) => { -// panic!("we don't want to format TokenKind::Interpolation using Display") -// } -// } -// } -// }