mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-27 01:07:10 +00:00
chore: Cleanup code
This commit is contained in:
@@ -3,7 +3,6 @@ package process
|
||||
import (
|
||||
"errors"
|
||||
"net/netip"
|
||||
"github.com/metacubex/mihomo/constant"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -20,7 +19,3 @@ const (
|
||||
func FindProcessName(network string, srcIP netip.Addr, srcPort int) (uint32, string, error) {
|
||||
return findProcessName(network, srcIP, srcPort)
|
||||
}
|
||||
|
||||
func FindPackageName(metadata *constant.Metadata) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build android,cmfa
|
||||
//go:build android && cmfa
|
||||
|
||||
package process
|
||||
|
||||
9
component/process/process_common.go
Normal file
9
component/process/process_common.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build !(android && cmfa)
|
||||
|
||||
package process
|
||||
|
||||
import "github.com/metacubex/mihomo/constant"
|
||||
|
||||
func FindPackageName(metadata *constant.Metadata) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
Reference in New Issue
Block a user