1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-30 14:49:26 +03:00

remove some dead code

This commit is contained in:
Wez Furlong 2022-03-23 20:43:50 -07:00
parent 623f617951
commit 185f52efaf
2 changed files with 0 additions and 14 deletions

View File

@ -2,7 +2,6 @@
use crate::{configuration, ConfigHandle, NewlineCanon}; use crate::{configuration, ConfigHandle, NewlineCanon};
use std::sync::Mutex; use std::sync::Mutex;
use termwiz::hyperlink::Rule as HyperlinkRule;
use wezterm_term::color::ColorPalette; use wezterm_term::color::ColorPalette;
use wezterm_term::config::BidiMode; use wezterm_term::config::BidiMode;
@ -45,11 +44,6 @@ impl wezterm_term::TerminalConfiguration for TermConfig {
self.configuration().scrollback_lines 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 { fn enable_csi_u_key_encoding(&self) -> bool {
self.configuration().enable_csi_u_key_encoding self.configuration().enable_csi_u_key_encoding
} }

View File

@ -1,5 +1,4 @@
use crate::color::ColorPalette; use crate::color::ColorPalette;
use termwiz::hyperlink::Rule as HyperlinkRule;
use termwiz::surface::{Line, SequenceNo}; use termwiz::surface::{Line, SequenceNo};
use wezterm_bidi::ParagraphDirectionHint; use wezterm_bidi::ParagraphDirectionHint;
@ -153,13 +152,6 @@ pub trait TerminalConfiguration: std::fmt::Debug {
false 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. /// Returns the default color palette for the application.
/// Various escape sequences can dynamically modify the effective /// Various escape sequences can dynamically modify the effective
/// color palette for a terminal instance at runtime, but this method /// color palette for a terminal instance at runtime, but this method