mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Remove copyCost
.
This commit is contained in:
parent
3a52a5c2b6
commit
1808f61221
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user