Drop obsolete contains_newline method

This commit is contained in:
Richard Feldman 2020-05-23 21:41:11 -04:00
parent 5b6be39007
commit 4d8cbc4811
2 changed files with 8 additions and 13 deletions

View file

@ -296,17 +296,6 @@ pub enum CommentOrNewline<'a> {
LineComment(&'a str),
}
impl<'a> CommentOrNewline<'a> {
pub fn contains_newline(&self) -> bool {
use self::CommentOrNewline::*;
match self {
// Line comments have an implicit newline at the end
Newline | LineComment(_) => true,
}
}
}
#[derive(Clone, Debug, PartialEq)]
pub enum Pattern<'a> {
// Identifier