Skip to content

Commit 75d8cdb

Browse files
committed
Lib: remove unused type variables
1 parent 73b2ef0 commit 75d8cdb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/js_of_ocaml/dom.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class type event_listener_options = object
333333
method passive : bool t writeonly_prop
334334
end
335335

336-
let addEventListenerWithOptions (e : (< .. > as 'a) t) typ ?capture ?once ?passive h =
336+
let addEventListenerWithOptions (e : < .. > t) typ ?capture ?once ?passive h =
337337
if not (Js.Optdef.test (Js.Unsafe.coerce e)##.addEventListener)
338338
then
339339
let ev = (Js.string "on")##concat typ in
@@ -353,7 +353,7 @@ let addEventListenerWithOptions (e : (< .. > as 'a) t) typ ?capture ?once ?passi
353353
let () = (Js.Unsafe.coerce e)##addEventListener typ h opts in
354354
fun () -> (Js.Unsafe.coerce e)##removeEventListener typ h opts
355355

356-
let addEventListener (e : (< .. > as 'a) t) typ h capt =
356+
let addEventListener (e : < .. > t) typ h capt =
357357
addEventListenerWithOptions e typ ~capture:capt h
358358

359359
let removeEventListener id = id ()

lib/js_of_ocaml/dom_html.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,7 +2593,7 @@ val removeEventListener : event_listener_id -> unit
25932593
(** Remove the given event listener. *)
25942594

25952595
val addMousewheelEventListenerWithOptions :
2596-
(#eventTarget t as 'a)
2596+
#eventTarget t
25972597
-> ?capture:bool t
25982598
-> ?once:bool t
25992599
-> ?passive:bool t
@@ -2605,7 +2605,7 @@ val addMousewheelEventListenerWithOptions :
26052605
means down / right. *)
26062606

26072607
val addMousewheelEventListener :
2608-
(#eventTarget t as 'a)
2608+
#eventTarget t
26092609
-> (mouseEvent t -> dx:int -> dy:int -> bool t)
26102610
-> bool t
26112611
-> event_listener_id

0 commit comments

Comments
 (0)