Skip to content

Commit

Permalink
[flow][EZ] Kill reason_of_t_add_id and reason_of_use_t_add_id
Browse files Browse the repository at this point in the history
Summary:
Unused for years, delete.

Changelog: [internal]

Reviewed By: panagosg7

Differential Revision: D56659975

fbshipit-source-id: 327a86c90ee111376fe85c0e18165bdcd4de7bc6
  • Loading branch information
SamChou19815 authored and facebook-github-bot committed Apr 27, 2024
1 parent d0ae804 commit b0e3ec1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/typing/trace.ml
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ let reasons_of_trace ?(level = 0) trace =
( if is_pipelined_tvar ~steps ~i lower then
[]
else
[pretty_r (reason_of_t_add_id lower) (spf "%s " (string_of_ctor lower)) ""]
[pretty_r (reason_of_t lower) (spf "%s " (string_of_ctor lower)) ""]
)
@ [
pretty_r
(reason_of_use_t_add_id upper)
(reason_of_use_t upper)
(spf "~> %s " (string_of_use_ctor upper))
( if parent = [] then
""
Expand Down
11 changes: 0 additions & 11 deletions src/typing/typeUtil.ml
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,6 @@ and reason_of_use_t = function
| ExitRendersT { renders_reason; _ } -> renders_reason
| EvalTypeDestructorT { reason; _ } -> reason

(* helper: we want the tvar id as well *)
(* NOTE: uncalled for now, because ids are nondetermistic
due to parallelism, which messes up test diffs. Should
add a config, but for now must uncomment impl to use *)
let reason_of_t_add_id = reason_of_t

(* function
| OpenT (r, id) -> prefix_reason (spf "%d: " id) r
| t -> reason_of_t t *)
let reason_of_use_t_add_id = reason_of_use_t

let desc_of_t = reason_of_t %> desc_of_reason

let loc_of_t = reason_of_t %> loc_of_reason
Expand Down
4 changes: 0 additions & 4 deletions src/typing/typeUtil.mli
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ val reason_of_defer_use_t : Type.defer_use_t -> reason

val reason_of_use_t : Type.use_t -> reason

val reason_of_t_add_id : Type.t -> reason

val reason_of_use_t_add_id : Type.use_t -> reason

val desc_of_t : Type.t -> reason_desc

val loc_of_t : Type.t -> ALoc.t
Expand Down

0 comments on commit b0e3ec1

Please sign in to comment.