Remove dead Config.arc_mode

Reviewed By: martintrojer

Differential Revision: D9751048

fbshipit-source-id: 41b9c00c6
master
Mehdi Bouaziz 6 years ago committed by Facebook Github Bot
parent 37bf7a5039
commit 636da5954b

@ -3022,9 +3022,6 @@ let set_reference_and_call_function reference value f x =
~finally:restore
(** Current Objective-C Automatic Reference Counting (ARC) mode *)
let arc_mode = ref false
(** Flag for footprint discovery mode *)
let footprint = ref true

@ -670,8 +670,6 @@ val xcpretty : bool
(** {2 Global variables} *)
val arc_mode : bool ref
val footprint : bool ref
val run_in_footprint_mode : ('a -> 'b) -> 'a -> 'b

@ -60,7 +60,6 @@ let run_clang_frontend ast_source =
let trans_unit_ctx =
match ast_decl with
| Clang_ast_t.TranslationUnitDecl (_, _, _, info) ->
Config.arc_mode := info.Clang_ast_t.tudi_arc_enabled ;
let source_file = SourceFile.from_abs_path info.Clang_ast_t.tudi_input_path in
init_global_state_for_capture_and_linters source_file ;
let lang =

Loading…
Cancel
Save