Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Jan 20, 2025
1 parent cc22f97 commit 1c50bee
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions template/src/Elm/Review/Vendor/Diff.elm
Original file line number Diff line number Diff line change
Expand Up @@ -222,39 +222,6 @@ makeChangesHelp changes getA getB ( x, y ) path =



-- Myers's O(ND) algorithm (http://www.xmailserver.org/diff2.pdf)


ond : (Int -> Maybe a) -> (Int -> Maybe a) -> Int -> Int -> List ( Int, Int )
ond getA getB m n =
let
v =
Array.initialize (m + n + 1) (always [])
in
ondLoopDK (snake getA getB) m 0 0 v


ondLoopDK :
(Int -> Int -> List ( Int, Int ) -> ( List ( Int, Int ), Bool ))
-> Int
-> Int
-> Int
-> Array (List ( Int, Int ))
-> List ( Int, Int )
ondLoopDK snake_ offset d k v =
if k > d then
ondLoopDK snake_ offset (d + 1) (-d - 1) v

else
case step snake_ offset k v of
Found path ->
path

Continue v_ ->
ondLoopDK snake_ offset d (k + 2) v_



-- Wu's O(NP) algorithm (http://myerslab.mpi-cbg.de/wp-content/uploads/2014/06/np_diff.pdf)


Expand Down

0 comments on commit 1c50bee

Please sign in to comment.