Przeglądaj źródła

Why was this debug even pushed..

Rudy Ges 1 rok temu
rodzic
commit
bfe08372e4
1 zmienionych plików z 5 dodań i 11 usunięć
  1. 5 11
      src/compiler/messageReporting.ml

+ 5 - 11
src/compiler/messageReporting.ml

@@ -398,20 +398,14 @@ let display_messages ctx on_message = begin
 			end
 			end
 	end;
 	end;
 
 
-	let do_filter = not true in
-	let filter_file = "src/alchimix/core/net/GameData.hx" in
-	(* trace (Printf.sprintf "%d messages" (List.length ctx.messages)); *)
-
 	List.iter (fun cm ->
 	List.iter (fun cm ->
-		if not do_filter || cm.cm_pos.pfile = filter_file then begin
-			if !log_messages then (Option.get !log_message) cm;
+		if !log_messages then (Option.get !log_message) cm;
 
 
-			match (message_formatter ectx cm) with
-				| None -> ()
-				| Some str -> on_message cm.cm_severity str;
-		end
+		match (message_formatter ectx cm) with
+			| None -> ()
+			| Some str -> on_message cm.cm_severity str
 	) (List.rev ctx.messages);
 	) (List.rev ctx.messages);
 
 
-	if !log_messages then (Option.get !close_logs) ()
+	if !log_messages then (Option.get !close_logs) ();
 end
 end