1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 10:15:55 +03:00

We don’t need this annotation.

This commit is contained in:
Rob Rix 2015-12-04 10:40:11 -05:00
parent 31e5cc9353
commit fe5b6d2011

View File

@ -51,7 +51,6 @@ annotatedToRows (Annotated (Info left _ leftCategories, Info right _ rightCatego
sumRows (rows, previousLeft, previousRight) child = (rows `adjoinRows` contextRows `adjoinRows` childRows, end leftChildRange, end rightChildRange)
where
(childRows, leftChildRange, rightChildRange) = diffToRows child before after
contextRows :: [Row]
contextRows = uncurry rowFromMaybeRows <$> zipMaybe leftElements rightElements
leftElements = Text <$> lines (substring (Range previousLeft $ start left) before)
rightElements = Text <$> lines (substring (Range previousRight $ start right) after)