aboutsummaryrefslogtreecommitdiff
path: root/src/definitions.rs
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2020-07-27 22:37:20 +0000
committerGitHub <noreply@github.com>2020-07-27 22:37:20 +0000
commit0310be12d3007e32be614c5df94653d29fcc1a8b (patch)
treefef8054b03206bb1ffc962705a93f25a29d59f7a /src/definitions.rs
parentf53d1b7dcfb9a1101b297437fb135667dd908628 (diff)
downloadr-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.rs21
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