From cfe89540b4a0620d02b47786599ad1836d851b25 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 2 Jul 2007 11:48:12 +0000 Subject: [PATCH] Remove unused functions (applyToPair, applyToFst, applyToSnd) --- compiler/utils/Util.lhs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/compiler/utils/Util.lhs b/compiler/utils/Util.lhs index ed4a4b9..8d79001 100644 --- a/compiler/utils/Util.lhs +++ b/compiler/utils/Util.lhs @@ -705,22 +705,6 @@ removeSpaces = reverse . dropWhile isSpace . reverse . dropWhile isSpace %* * %************************************************************************ -The following provide us higher order functions that, when applied -to a function, operate on pairs. - -\begin{code} -#if NOT_USED -applyToPair :: ((a -> c),(b -> d)) -> (a,b) -> (c,d) -applyToPair (f,g) (x,y) = (f x, g y) - -applyToFst :: (a -> c) -> (a,b)-> (c,b) -applyToFst f (x,y) = (f x,y) - -applyToSnd :: (b -> d) -> (a,b) -> (a,d) -applyToSnd f (x,y) = (x,f y) -#endif -\end{code} - \begin{code} unzipWith :: (a -> b -> c) -> [(a, b)] -> [c] unzipWith f pairs = map ( \ (a, b) -> f a b ) pairs -- 1.7.10.4