1
1
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:
Rob Rix 2015-10-13 18:20:11 -04:00
parent ee0f8765aa
commit 7786b8c40f

View File

@ -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):