Skip to content

Commit 3613122

Browse files
author
Arror
committed
Remove unused code
1 parent 1545e3b commit 3613122

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

CommonKit/ClashLogLevel.swift

+1-20
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
import Foundation
22

3-
public enum ClashLogLevel: String, Identifiable, CaseIterable, Comparable {
3+
public enum ClashLogLevel: String, Identifiable, CaseIterable {
44

55
public var id: Self { self }
66

77
case silent, info, debug, warning, error
8-
9-
public static func < (lhs: ClashLogLevel, rhs: ClashLogLevel) -> Bool {
10-
lhs.weight < rhs.weight
11-
}
12-
13-
private var weight: Int {
14-
switch self {
15-
case .silent:
16-
return 0
17-
case .info:
18-
return 1
19-
case .debug:
20-
return 2
21-
case .warning:
22-
return 3
23-
case .error:
24-
return 4
25-
}
26-
}
278
}

0 commit comments

Comments
 (0)