From 185f52efaff0a2bcc5b07b96cb3c014d08dc3350 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 23 Mar 2022 20:43:50 -0700 Subject: [PATCH] remove some dead code --- config/src/terminal.rs | 6 ------ term/src/config.rs | 8 -------- 2 files changed, 14 deletions(-) diff --git a/config/src/terminal.rs b/config/src/terminal.rs index 55e3d2c7f..e0425d6a2 100644 --- a/config/src/terminal.rs +++ b/config/src/terminal.rs @@ -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) { - 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 } diff --git a/term/src/config.rs b/term/src/config.rs index 8ce2349cc..f6fe5ccb8 100644 --- a/term/src/config.rs +++ b/term/src/config.rs @@ -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) { - (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