1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

Remove copyCost.

This commit is contained in:
Rob Rix 2015-11-27 09:46:38 -05:00
parent 3a52a5c2b6
commit 1808f61221

View File

@ -18,7 +18,6 @@ ses diffTerms cost (a : as) (b : bs) = case diffTerms a b of
Just f -> minimumBy (comparing sumCost) [ delete, insert, copy ]
where
copy = f : ses diffTerms cost as bs
copyCost = sumCost copy
Nothing -> minimumBy (comparing sumCost) [ delete, insert ]
where
delete = (Pure . Delete $ a) : ses diffTerms cost as (b : bs)