1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

Remove an extra line.

This commit is contained in:
Rob Rix 2016-03-02 16:12:49 -05:00
parent 45357dddac
commit 72a61a5855

View File

@ -52,7 +52,6 @@ splitPatchByLines patch previous sources = case patch of
where Both ((leftLines, leftRange), (rightLines, rightRange)) = splitTermByLines <$> Both (leftTerm, rightTerm) <*> sources
(lines, ranges) = (Both (leftLines, rightLines), Both (leftRange, rightRange))
-- | Takes a term and a source and returns a list of lines and their range within source.
splitTermByLines :: Term leaf Info -> Source Char -> ([Line (Term leaf Info)], Range)
splitTermByLines (Info range categories :< syntax) source = flip (,) range $ case syntax of