refactor: remove SurfaceMessageHandler

This commit is contained in:
Ashley Wulber 2025-02-24 14:14:17 -05:00
parent 2b232065ff
commit 9352c0241e
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
7 changed files with 131 additions and 156 deletions

View file

@ -7,17 +7,6 @@ pub enum MessageWrapper<M> {
Message(M),
}
pub trait SurfaceMessageHandler: Sized {
fn to_surface_message(self) -> MessageWrapper<Self>;
}
#[cfg(not(feature = "wayland"))]
impl<M> SurfaceMessageHandler for M {
fn to_surface_message(self) -> MessageWrapper<Self> {
MessageWrapper::Message(self)
}
}
/// Ignore this message in your application. It will be intercepted.
#[derive(Clone)]
pub enum SurfaceMessage {