From e33d4a4769ac943d3fa9940bdb62b59240556cc4 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Thu, 12 Sep 2024 11:19:40 +0800 Subject: [PATCH] chore: cleanup the patch code --- adapter/provider/patch_android.go | 19 ------------------- dns/patch_android.go | 2 -- listener/http/patch_android.go | 9 --------- rules/provider/patch_android.go | 17 ----------------- 4 files changed, 47 deletions(-) delete mode 100644 adapter/provider/patch_android.go delete mode 100644 listener/http/patch_android.go delete mode 100644 rules/provider/patch_android.go diff --git a/adapter/provider/patch_android.go b/adapter/provider/patch_android.go deleted file mode 100644 index 2a91d7f1..00000000 --- a/adapter/provider/patch_android.go +++ /dev/null @@ -1,19 +0,0 @@ -//go:build android && cmfa - -package provider - -import ( - "time" -) - -var ( - suspended bool -) - -type UpdatableProvider interface { - UpdatedAt() time.Time -} - -func Suspend(s bool) { - suspended = s -} diff --git a/dns/patch_android.go b/dns/patch_android.go index 386680e7..6579ef07 100644 --- a/dns/patch_android.go +++ b/dns/patch_android.go @@ -6,8 +6,6 @@ import ( "github.com/metacubex/mihomo/component/resolver" ) -const SystemDNSPlaceholder = "system" - var systemResolver []dnsClient func FlushCacheWithDefaultResolver() { diff --git a/listener/http/patch_android.go b/listener/http/patch_android.go deleted file mode 100644 index b1b8bfc7..00000000 --- a/listener/http/patch_android.go +++ /dev/null @@ -1,9 +0,0 @@ -//go:build android && cmfa - -package http - -import "net" - -func (l *Listener) Listener() net.Listener { - return l.listener -} diff --git a/rules/provider/patch_android.go b/rules/provider/patch_android.go deleted file mode 100644 index d4b752c3..00000000 --- a/rules/provider/patch_android.go +++ /dev/null @@ -1,17 +0,0 @@ -//go:build android && cmfa - -package provider - -import "time" - -var ( - suspended bool -) - -type UpdatableProvider interface { - UpdatedAt() time.Time -} - -func Suspend(s bool) { - suspended = s -}