diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-07-27 22:37:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 22:37:20 +0000 |
commit | 0310be12d3007e32be614c5df94653d29fcc1a8b (patch) | |
tree | fef8054b03206bb1ffc962705a93f25a29d59f7a /src/definitions.rs | |
parent | f53d1b7dcfb9a1101b297437fb135667dd908628 (diff) | |
download | r-alacritty-vte-0310be12d3007e32be614c5df94653d29fcc1a8b.tar.gz r-alacritty-vte-0310be12d3007e32be614c5df94653d29fcc1a8b.tar.bz2 r-alacritty-vte-0310be12d3007e32be614c5df94653d29fcc1a8b.zip |
Improve parser performance
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 |