1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 18:06:14 +03:00

Remove isClosedBy.

This commit is contained in:
Rob Rix 2016-03-07 19:45:57 -05:00
parent b100eb9674
commit 6bf8d10efd

View File

@ -106,9 +106,6 @@ spec = parallel $ do
fmap start . maybeFirst . Maybe.catMaybes <$> Both.unzip (fmap maybeFirst . unRow . fmap Prelude.snd <$> splitPatchByLines ((Source.++) <$> sources <*> sources) (patchWithBoth patch (leafWithRangeInSource <$> sources <*> (Range <$> indices <*> ((2 *) <$> indices))))) `shouldBe` (<$) <$> indices <*> unPatch patch
where
isClosedBy f (Row lines@(Both (Line _, Line _))) = and (Maybe.isNothing . openLineBy f . pure <$> lines)
isClosedBy _ _ = False
isEmptyRow (Row (Both (EmptyLine, EmptyLine))) = True
isEmptyRow _ = False