mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Remove the Patch.cost
property.
This commit is contained in:
parent
ee0f8765aa
commit
7786b8c40f
@ -16,17 +16,6 @@ public enum Patch<A>: CustomDebugStringConvertible, CustomDocConvertible {
|
||||
}
|
||||
|
||||
|
||||
/// The cost of a patch to the diff.
|
||||
public var cost: Int {
|
||||
switch self {
|
||||
case .Replace:
|
||||
return 2
|
||||
default:
|
||||
return 1
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public var inverse: Patch {
|
||||
switch self {
|
||||
case let .Replace(a, b):
|
||||
|
Loading…
Reference in New Issue
Block a user