Переглянути джерело

[gencommon] remove unused does_unify function (there's `unifies`)

Dan Korostelev 9 роки тому
батько
коміт
5c1f07d11e
1 змінених файлів з 0 додано та 6 видалено
  1. 0 6
      src/generators/gencommon.ml

+ 0 - 6
src/generators/gencommon.ml

@@ -5845,12 +5845,6 @@ struct
 			in
 			loop sup
 
-	let does_unify a b =
-		try
-			unify a b;
-			true
-		with | Unify_error _ -> false
-
 	(* this is a workaround for issue #1743, as FInstance() is returning the incorrect classfield *)
 	let rec clean_t t = match follow t with
 		| TAbstract(a,tl) when not (Meta.has Meta.CoreType a.a_meta) ->