Remove unused code

This commit is contained in:
yicheng 2019-10-31 23:26:44 +08:00
parent 1ee9ec8f1a
commit ddf2ab5c19

View File

@ -190,9 +190,8 @@ class ApiRequest {
static func getAllProxyList(callback: @escaping (([ClashProxyName]) -> Void)) {
requestProxyGroupList {
proxyInfo in
let proxyGroupType: [ClashProxyType] = [.urltest, .fallback, .loadBalance, .select, .direct, .reject]
let lists: [ClashProxyName] = proxyInfo.proxies
.filter { $0.name == "GLOBAL" && proxyGroupType.contains($0.type) }
.filter { $0.name == "GLOBAL"}
.first?.all ?? []
callback(lists)
}