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

Remove the delete/insert costs.

This commit is contained in:
Rob Rix 2015-11-27 09:49:51 -05:00
parent 062d54d731
commit 3be2d11b13

View File

@ -20,7 +20,5 @@ ses diffTerms cost (a : as) (b : bs) = case diffTerms a b of
where
delete = (Pure . Delete $ a) : ses diffTerms cost as (b : bs)
insert = (Pure . Insert $ b) : ses diffTerms cost (a : as) bs
deleteCost = sumCost delete
insertCost = sumCost insert
sumCost script = sum $ cost <$> script
copy head = head : ses diffTerms cost as bs