fix: remove dead code from event-driven proxy and handle modules (#5103)

* refactor: remove dead code from event-driven proxy and handle modules

* refactor: remove dead code for set_activation_policy_prohibited function
This commit is contained in:
Tunglies
2025-10-17 20:12:03 +08:00
committed by GitHub
parent 0b63bebb6c
commit 98a52c5c33
3 changed files with 3 additions and 135 deletions

View File

@@ -22,12 +22,9 @@ pub enum ChainType {
}
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub enum ChainSupport {
Clash,
ClashMeta,
ClashMetaAlpha,
All,
}
// impl From<&PrfItem> for Option<ChainItem> {
@@ -156,9 +153,7 @@ impl ChainSupport {
match core {
Some(core) => matches!(
(self, core.as_str()),
(ChainSupport::All, _)
| (ChainSupport::Clash, "clash")
| (ChainSupport::ClashMeta, "verge-mihomo")
(ChainSupport::ClashMeta, "verge-mihomo")
| (ChainSupport::ClashMetaAlpha, "verge-mihomo-alpha")
),
None => true,