1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00

Remove the switch statement.

This commit is contained in:
Rob Rix 2015-11-02 16:03:03 -05:00
parent 6f2176ca57
commit 4fe901bbd4

View File

@ -8,13 +8,6 @@ private func range(patch: Patch<Term>) -> Range<Int> {
}
func unified(diff: Diff, before: String, after: String) -> String {
switch diff {
case let .Pure(patch):
return unified(patch, source: after)
case .Roll:
return ""
}
return diff.map { (unified($0, source: after), range($0)) }.cata { info, syntax in
switch syntax {
case .Leaf: