Remove incorrect comment and unused function
This commit is contained in:
parent
0fa6d660e6
commit
8a92d4281a
|
@ -69,7 +69,6 @@ enum UnintentionalEntityState {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct UnintentionalEntityPrevention {
|
pub struct UnintentionalEntityPrevention {
|
||||||
// Start of ampersand if state is not Safe; otherwise simply the last `write_next` value of proc.
|
|
||||||
last_write_next: usize,
|
last_write_next: usize,
|
||||||
ampersand_pos: usize,
|
ampersand_pos: usize,
|
||||||
state: UnintentionalEntityState,
|
state: UnintentionalEntityState,
|
||||||
|
|
|
@ -39,15 +39,6 @@ pub enum EntityType {
|
||||||
Numeric(char),
|
Numeric(char),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EntityType {
|
|
||||||
pub fn is_malformed(&self) -> bool {
|
|
||||||
match self {
|
|
||||||
EntityType::Malformed(_) => true,
|
|
||||||
_ => false,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl EntityType {
|
impl EntityType {
|
||||||
pub fn keep(self, proc: &mut Processor) -> () {
|
pub fn keep(self, proc: &mut Processor) -> () {
|
||||||
match self {
|
match self {
|
||||||
|
|
Loading…
Reference in New Issue