Skip to content

Commit

Permalink
remove magicTypes.ml (#11387)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn authored Nov 18, 2023
1 parent 92a40ef commit 53ad64d
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 105 deletions.
2 changes: 1 addition & 1 deletion extra/haxelib_src
1 change: 0 additions & 1 deletion src/context/typecore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ type typer_globals = {
mutable load_only_cached_modules : bool;
functional_interface_lut : (path,tclass_field) lookup;
(* api *)
do_inherit : typer -> Type.tclass -> pos -> (bool * placed_type_path) -> bool;
do_macro : typer -> macro_mode -> path -> string -> expr list -> pos -> expr option;
do_load_macro : typer -> bool -> path -> string -> pos -> ((string * bool * t) list * t * tclass * Type.tclass_field);
do_load_module : typer -> path -> pos -> module_def;
Expand Down
101 changes: 0 additions & 101 deletions src/typing/magicTypes.ml

This file was deleted.

1 change: 0 additions & 1 deletion src/typing/typeloadCheck.ml
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ module Inheritance = struct
| HImplements t -> Some(false,t)
| t -> None
) herits in
let herits = List.filter (ctx.g.do_inherit ctx c p) herits in
(* Pass 1: Check and set relations *)
let check_herit t is_extends p =
let rec check_interfaces_or_delay () =
Expand Down
1 change: 0 additions & 1 deletion src/typing/typer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,6 @@ let create com macros =
type_hints = [];
load_only_cached_modules = false;
functional_interface_lut = new pmap_lookup;
do_inherit = MagicTypes.on_inherit;
do_macro = MacroContext.type_macro;
do_load_macro = MacroContext.load_macro';
do_load_module = TypeloadModule.load_module;
Expand Down

0 comments on commit 53ad64d

Please sign in to comment.