mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-02 10:47:07 +00:00
chore: cleanup the patch code
This commit is contained in:
1 parent
4c3fe98ebd
commit
e33d4a4769
4 files changed
-47
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -6,8 +6,6 @@ import (
|
||||
"github.com/metacubex/mihomo/component/resolver"
|
||||
)
|
||||
|
||||
const SystemDNSPlaceholder = "system"
|
||||
|
||||
var systemResolver []dnsClient
|
||||
|
||||
func FlushCacheWithDefaultResolver() {
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
//go:build android && cmfa
|
||||
|
||||
package http
|
||||
|
||||
import "net"
|
||||
|
||||
func (l *Listener) Listener() net.Listener {
|
||||
return l.listener
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user