From 523d7a441e1c9497e576d021bf7dc5cd7cbd5f44 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 2 Nov 2015 16:15:34 -0500 Subject: [PATCH] Use the context-printing function for indexed syntax. --- prototype/doubt-difftool/Unified.swift | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/prototype/doubt-difftool/Unified.swift b/prototype/doubt-difftool/Unified.swift index db241454b..a71ddd27a 100644 --- a/prototype/doubt-difftool/Unified.swift +++ b/prototype/doubt-difftool/Unified.swift @@ -26,16 +26,7 @@ func unified(diff: Diff, before: String, after: String) -> String { case .Leaf: return (String(after.utf16[info.1.range]), info.1.range) case let .Indexed(i): - var previous = info.1.range.startIndex - var out: String = "" - for (string, range) in i { - if let range = range { - out += String(after.utf16[previous..