Jelajahi Sumber

removed unused "dup"

Nicolas Cannasse 11 tahun lalu
induk
melakukan
717bb9de17
1 mengubah file dengan 0 tambahan dan 6 penghapusan
  1. 0 6
      matcher.ml

+ 0 - 6
matcher.ml

@@ -521,12 +521,6 @@ let to_pattern ctx e t =
 			loop pctx (EBinop(OpOr,e1,(EBinop(OpOr,e2,e3),p2)),p) t
 		| EBinop(OpOr,e1,e2) ->
 			let old = pctx.pc_locals in
-			let rec dup t = match t with
-				| TMono r -> (match !r with
-					| None -> mk_mono()
-					| Some t -> Type.map dup t)
-				| _ -> Type.map dup t
-			in
 			let pat1 = loop pctx e1 t in
 			begin match pat1.p_def with
 				| PAny | PVar _ ->