Skip to content

Commit

Permalink
rtfeldman#446 remove unused diffLines function
Browse files Browse the repository at this point in the history
  • Loading branch information
frankschmitt committed Oct 31, 2020
1 parent 033c5bc commit 732b7e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.
6 changes: 2 additions & 4 deletions elm/review/src/ReviewConfig.elm
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ config =

, NoUnused.Exports.rule
|> Review.Rule.ignoreErrorsForFiles
[ "src/Test/Runner/Node/Vendor/Diff.elm"
, "src/Test/Runner/Node.elm"
--, "src/Test/Runner/Node/Vendor/Console.elm"
--, "src/Test/Reporter/TestResults.elm" -- isTodo
[ "x" --"src/Test/Runner/Node/Vendor/Diff.elm"
, "src/Test/Runner/Node.elm" -- run, TestProgram are used externally
]
, NoUnused.Modules.rule
, NoUnused.CustomTypeConstructorArgs.rule
Expand Down
34 changes: 1 addition & 33 deletions elm/src/Test/Runner/Node/Vendor/Diff.elm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Test.Runner.Node.Vendor.Diff exposing
( Change(..)
, diff, diffLines
, diff
)

{-| Compares two list and returns how they have changed.
Expand Down Expand Up @@ -79,38 +79,6 @@ type BugReport
| UnexpectedPath ( Int, Int ) (List ( Int, Int ))


{-| Compares two text.
Giving the following text
a =
"""aaa
bbb
ddd"""
b =
"""zzz
aaa
ccc
ddd"""
results in
[ Added "zzz"
, NoChange "aaa"
, Removed "bbb"
, Added "ccc"
, NoChange "ddd"
]
.
-}
diffLines : String -> String -> List (Change String)
diffLines a b =
diff (String.lines a) (String.lines b)


{-| Compares general lists.
diff [ 1, 3 ] [ 2, 3 ] == [ Removed 1, Added 2, NoChange 3 ] -- True
Expand Down

0 comments on commit 732b7e1

Please sign in to comment.