From 8a92d4281a2d83ad05acb3d5c97d7a822668fef2 Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Tue, 14 Jan 2020 17:56:13 +1100 Subject: [PATCH] Remove incorrect comment and unused function --- src/proc.rs | 1 - src/unit/entity.rs | 9 --------- 2 files changed, 10 deletions(-) diff --git a/src/proc.rs b/src/proc.rs index b2e9498..f3152e6 100644 --- a/src/proc.rs +++ b/src/proc.rs @@ -69,7 +69,6 @@ enum UnintentionalEntityState { } pub struct UnintentionalEntityPrevention { - // Start of ampersand if state is not Safe; otherwise simply the last `write_next` value of proc. last_write_next: usize, ampersand_pos: usize, state: UnintentionalEntityState, diff --git a/src/unit/entity.rs b/src/unit/entity.rs index b8453e2..11cad85 100644 --- a/src/unit/entity.rs +++ b/src/unit/entity.rs @@ -39,15 +39,6 @@ pub enum EntityType { Numeric(char), } -impl EntityType { - pub fn is_malformed(&self) -> bool { - match self { - EntityType::Malformed(_) => true, - _ => false, - } - } -} - impl EntityType { pub fn keep(self, proc: &mut Processor) -> () { match self {