diff options
Diffstat (limited to 'src/definitions.rs')
-rw-r--r-- | src/definitions.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/definitions.rs b/src/definitions.rs index 5d01623..fe7952d 100644 --- a/src/definitions.rs +++ b/src/definitions.rs @@ -48,27 +48,6 @@ pub enum Action { BeginUtf8 = 15, } -impl State { - #[inline] - pub fn entry_action(self) -> Action { - match self { - State::CsiEntry | State::DcsEntry | State::Escape => Action::Clear, - State::DcsPassthrough => Action::Hook, - State::OscString => Action::OscStart, - _ => Action::None, - } - } - - #[inline] - pub fn exit_action(self) -> Action { - match self { - State::DcsPassthrough => Action::Unhook, - State::OscString => Action::OscEnd, - _ => Action::None, - } - } -} - /// Unpack a u8 into a State and Action /// /// The implementation of this assumes that there are *precisely* 16 variants for both Action and |