remove duplicated is_comment function

This commit is contained in:
Sébastien Besnier 2020-11-15 09:01:24 +01:00
parent ccabc41489
commit 93b7ac5b0c
3 changed files with 4 additions and 12 deletions

View file

@ -150,11 +150,3 @@ fn fmt_docs<'a>(buf: &mut String<'a>, docs: &'a str, indent: u16) {
newline(buf, indent);
}
pub fn is_comment<'a>(space: &'a CommentOrNewline<'a>) -> bool {
match space {
CommentOrNewline::Newline => false,
CommentOrNewline::LineComment(_) => true,
CommentOrNewline::DocComment(_) => true,
}
}