diff --git a/typed-html/src/events.rs b/typed-html/src/events.rs index 49c6750..ea12ef6 100644 --- a/typed-html/src/events.rs +++ b/typed-html/src/events.rs @@ -24,12 +24,6 @@ pub trait EventHandler { fn render(&self) -> Option; } -/// Trait for building event handlers from other types. -pub trait IntoEventHandler { - /// Construct an event handler from an instance of the source type. - fn into_event_handler(self) -> Box>; -} - macro_rules! declare_events_struct { ($($name:ident,)*) => { pub struct Events {