mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-22 04:34:44 +00:00
browser.EventManager: remove unused hasListener function
This commit is contained in:
@@ -98,14 +98,6 @@ pub const Callback = union(enum) {
|
||||
object: js.Object,
|
||||
};
|
||||
|
||||
pub fn hasListener(self: *EventManager, target: *EventTarget, typ: []const u8) bool {
|
||||
const type_string = String.wrap(typ);
|
||||
return self.lookup.contains(.{
|
||||
.event_target = @intFromPtr(target),
|
||||
.type_string = type_string,
|
||||
});
|
||||
}
|
||||
|
||||
pub fn register(self: *EventManager, target: *EventTarget, typ: []const u8, callback: Callback, opts: RegisterOptions) !void {
|
||||
if (comptime IS_DEBUG) {
|
||||
log.debug(.event, "eventManager.register", .{ .type = typ, .capture = opts.capture, .once = opts.once, .target = target.toString() });
|
||||
|
||||
Reference in New Issue
Block a user