mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Drop obsolete contains_newline method
This commit is contained in:
parent
5b6be39007
commit
4d8cbc4811
2 changed files with 8 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue