remove some dead code

This commit is contained in:
Wez Furlong committed 2022-03-23 20:43:50 -07:00
1 parent 623f617951
commit 185f52efaf
2 files changed
-14

No files matched your search

-6
View File
@@ -2,7 +2,6 @@
use crate::{configuration, ConfigHandle, NewlineCanon};
use std::sync::Mutex;
use termwiz::hyperlink::Rule as HyperlinkRule;
use wezterm_term::color::ColorPalette;
use wezterm_term::config::BidiMode;
@@ -45,11 +44,6 @@ impl wezterm_term::TerminalConfiguration for TermConfig {
self.configuration().scrollback_lines
}
fn hyperlink_rules(&self) -> (usize, Vec<HyperlinkRule>) {
let config = self.configuration();
(config.generation(), config.hyperlink_rules.clone())
}
fn enable_csi_u_key_encoding(&self) -> bool {
self.configuration().enable_csi_u_key_encoding
}
-8
View File
@@ -1,5 +1,4 @@
use crate::color::ColorPalette;
use termwiz::hyperlink::Rule as HyperlinkRule;
use termwiz::surface::{Line, SequenceNo};
use wezterm_bidi::ParagraphDirectionHint;
@@ -153,13 +152,6 @@ pub trait TerminalConfiguration: std::fmt::Debug {
false
}
/// Returns the current generation and its associated hyperlink rules.
/// hyperlink rules are used to recognize and automatically generate
/// hyperlink attributes for runs of text that match the provided rules.
fn hyperlink_rules(&self) -> (usize, Vec<HyperlinkRule>) {
(self.generation(), vec![])
}
/// Returns the default color palette for the application.
/// Various escape sequences can dynamically modify the effective
/// color palette for a terminal instance at runtime, but this method