Browse Source

remove unused check_to_string function

Simon Krajewski 11 năm trước cách đây
mục cha
commit
4edf71a938
1 tập tin đã thay đổi với 0 bổ sung10 xóa
  1. 0 10
      typer.ml

+ 0 - 10
typer.ml

@@ -3372,16 +3372,6 @@ and build_call ctx acc el (with_type:with_type) p =
 		) in
 		mk (TCall (e,el)) t p
 
-and check_to_string ctx t =
-	match follow t with
-	| TInst (c,_) ->
-		(try
-			let _, _, f = Type.class_field c "toString" in
-			ignore(follow f.cf_type);
-		with Not_found ->
-			())
-	| _ -> ()
-
 (* ---------------------------------------------------------------------- *)
 (* FINALIZATION *)