types: remove dirty Ord instance of MethodSignature
authorBernhard Urban <lewurm@gmail.com>
Tue, 19 Jun 2012 19:02:23 +0000 (21:02 +0200)
committerBernhard Urban <lewurm@gmail.com>
Tue, 19 Jun 2012 19:02:23 +0000 (21:02 +0200)
we moved that finally to hs-java-0.3.3

Mate/Types.hs

index 59ebd6a568afb97487f6993b1c015fd68850e46f..5405a43a4f708df4a3be729fbf12983768c29711 100644 (file)
@@ -52,14 +52,6 @@ data MethodInfo = MethodInfo {
   methSignature :: MethodSignature
   } deriving (Eq, Ord)
 
--- TODO(bernhard): not really efficient. also, outsource that to hs-java
---                 deriving should be enough?
-instance Ord MethodSignature where
-  compare (MethodSignature args_a ret_a) (MethodSignature args_b ret_b)
-    | cmp_args /= EQ = cmp_args
-    | otherwise = show ret_a `compare` show ret_b
-    where cmp_args = show args_a `compare` show args_b
-
 instance Show MethodInfo where
   show (MethodInfo method c sig) =
     toString c ++ "." ++ toString method ++ "." ++ show sig