Skip to content

Commit 0dcc1e9

Browse files
aorenstefacebook-github-bot
authored andcommitted
remove Clone_too_many_arguments
Summary: Clone_too_many_arguments (and friends) seems to never actually be used. Removed it. I really don't know OCaml or the typechecker environment - when reviewing please double-check me. Reviewed By: Wilfred Differential Revision: D38266198 fbshipit-source-id: 6bb6121f207aa3b5a32dc9257faf8265d6417a6d
1 parent 204155d commit 0dcc1e9

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

hphp/hack/src/errors/naming_error.ml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ type t =
111111
}
112112
| Missing_typehint of Pos.t
113113
| Expected_variable of Pos.t
114-
| Clone_too_many_arguments of Pos.t
115114
| Too_many_arguments of Pos.t
116115
| Too_few_arguments of Pos.t
117116
| Expected_collection of {
@@ -759,12 +758,6 @@ let expected_variable pos =
759758
(pos, "Was expecting a variable name")
760759
[]
761760

762-
let clone_too_many_arguments pos =
763-
User_error.make
764-
Error_code.(to_enum NamingTooManyArguments)
765-
(pos, "`__clone` method cannot take arguments")
766-
[]
767-
768761
let too_many_arguments pos =
769762
User_error.make
770763
Error_code.(to_enum NamingTooManyArguments)
@@ -1127,7 +1120,6 @@ let to_user_error = function
11271120
shadowed_tparam prev_pos tparam_name pos
11281121
| Missing_typehint pos -> missing_typehint pos
11291122
| Expected_variable pos -> expected_variable pos
1130-
| Clone_too_many_arguments pos -> clone_too_many_arguments pos
11311123
| Too_many_arguments pos -> too_many_arguments pos
11321124
| Too_few_arguments pos -> too_few_arguments pos
11331125
| Expected_collection { pos; cname } -> expected_collection pos cname

hphp/hack/src/errors/naming_error.mli

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ type t =
107107
}
108108
| Missing_typehint of Pos.t
109109
| Expected_variable of Pos.t
110-
| Clone_too_many_arguments of Pos.t
111110
| Too_many_arguments of Pos.t
112111
| Too_few_arguments of Pos.t
113112
| Expected_collection of {

0 commit comments

Comments
 (0)