Skip to content

Commit 3440a62

Browse files
committed
Remove unused function compareArrayImpl
1 parent 1b04eb2 commit 3440a62

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

src/Prelude.purs

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -820,36 +820,6 @@ foreign import ordArrayImpl """
820820
}
821821
""" :: forall a. (a -> a -> Int) -> Array a -> Array a -> Int
822822

823-
foreign import compareArrayImpl
824-
"""
825-
function compareArrayImpl(checkEqOr) {
826-
return function(eq) {
827-
return function(xs) {
828-
return function(ys) {
829-
var minlen = xs.length
830-
var maxlen = ys.length
831-
var result = null
832-
833-
if (maxlen < minlen) {
834-
var tmp = minlen
835-
minlen = maxlen
836-
maxlen = tmp
837-
}
838-
839-
for (var i = 0; i < minlen && result === null; ++i) {
840-
checkEqOr(xs[i])(ys[i])(function(other) { result = other })
841-
}
842-
843-
if (result === null) {
844-
result = eq
845-
}
846-
return result
847-
}
848-
}
849-
}
850-
}
851-
""" :: forall a. (a -> a -> (Ordering -> Unit) -> Unit) -> Ordering -> Array a -> Array a -> Ordering
852-
853823
instance ordOrdering :: Ord Ordering where
854824
compare LT LT = EQ
855825
compare EQ EQ = EQ

0 commit comments

Comments
 (0)