浏览代码

[skip ci] remove some comments

Rudy Ges 2 年之前
父节点
当前提交
e063dbed9c
共有 2 个文件被更改,包括 0 次插入5 次删除
  1. 0 2
      src/context/display/diagnostics.ml
  2. 0 3
      src/context/display/diagnosticsPrinter.ml

+ 0 - 2
src/context/display/diagnostics.ml

@@ -39,11 +39,9 @@ let find_unused_variables com e =
 let check_other_things com e =
 	let had_effect = ref false in
 	let no_effect p =
-		(* TODO warning code? *)
 		add_diagnostics_message com "This code has no effect" p DKCompilerMessage Warning;
 	in
 	let pointless_compound s p =
-		(* TODO warning code? *)
 		add_diagnostics_message com (Printf.sprintf "This %s has no effect, but some of its sub-expressions do" s) p DKCompilerMessage Warning;
 	in
 	let rec compound s el p =

+ 0 - 3
src/context/display/diagnosticsPrinter.ml

@@ -191,11 +191,9 @@ let json_of_diagnostics com dctx =
 		()
 	end;
 	PMap.iter (fun p r ->
-		(* TODO warning code? *)
 		if not !r then add DKUnusedImport p MessageSeverity.Warning None (JArray [])
 	) dctx.import_positions;
 	List.iter (fun (s,p,prange) ->
-		(* TODO warning code? *)
 		add DKRemovableCode p MessageSeverity.Warning None (JObject ["description",JString s;"range",if prange = null_pos then JNull else Genjson.generate_pos_as_range prange])
 	) dctx.removable_code;
 	Hashtbl.iter (fun file ranges ->
@@ -205,7 +203,6 @@ let json_of_diagnostics com dctx =
 					"string",JString (Ast.Printer.s_expr e)
 				]
 			] in
-			(* TODO warning code? *)
 			add DKInactiveBlock p MessageSeverity.Hint None jo
 		) ranges
 	) dctx.dead_blocks;