[deadcode] remove dead code

Summary: `make deadcode` complains about circular dependencies but it works. Document mystery and remove dead code that was introduced while the tests were broken.

Reviewed By: da319

Differential Revision: D8590961

fbshipit-source-id: b52e290
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent c88441885d
commit 0110ad9e14

@ -88,16 +88,6 @@ let ast_node_kind node =
Clang_ast_proj.get_decl_kind_string decl
let ast_node_source_range node =
match node with
| Stmt stmt ->
let s_stmt_info, _ = Clang_ast_proj.get_stmt_tuple stmt in
s_stmt_info.si_source_range
| Decl decl ->
let d_decl_info = Clang_ast_proj.get_decl_tuple decl in
d_decl_info.di_source_range
(* true iff an ast node is a node of type among the list tl *)
let ast_node_has_kind tl an =
let an_alexp = ALVar.Const (ast_node_kind an) in

@ -29,8 +29,6 @@ val stmt_node_child_type : ast_node -> string
val ast_node_cast_kind : ast_node -> string
val ast_node_source_range : ast_node -> Clang_ast_t.source_range
val is_node_successor_of : is_successor:ast_node -> ast_node -> bool
val get_direct_successor_nodes : ast_node -> ast_node list

@ -49,6 +49,7 @@ depend:
-I java -I labs -I python -I quandary -I unit -I unit/clang -I deadcode \
$(ml_src_files) > deadcode/.depend
# circular dependency... not sure how to fix properly
%.cmi: %.cmx
# deal with the .ml *and* the .mli at the same time: when all the modules are inlined in one
# file, you need the module value to be defined before you can refer to it, even in

Loading…
Cancel
Save