Remove unused callbacks (#11410)

This PR follows up #11314 (which removes some deprecated `callback`s)
removes the corresponding implements.

Release Notes:

- N/A
This commit is contained in:
张小白 2024-05-07 04:21:35 +08:00 committed by GitHub
parent 9a60c0a059
commit 68a0035264
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 5 additions and 103 deletions

View file

@ -37,7 +37,6 @@ pub(crate) struct Callbacks {
input: Option<Box<dyn FnMut(crate::PlatformInput) -> crate::DispatchEventResult>>,
active_status_change: Option<Box<dyn FnMut(bool)>>,
resize: Option<Box<dyn FnMut(Size<Pixels>, f32)>>,
fullscreen: Option<Box<dyn FnMut(bool)>>,
moved: Option<Box<dyn FnMut()>>,
should_close: Option<Box<dyn FnMut() -> bool>>,
close: Option<Box<dyn FnOnce()>>,
@ -480,11 +479,6 @@ impl WaylandWindowStatePtr {
pub fn set_fullscreen(&self, fullscreen: bool) {
let mut state = self.state.borrow_mut();
state.fullscreen = fullscreen;
let mut callbacks = self.callbacks.borrow_mut();
if let Some(ref mut fun) = callbacks.fullscreen {
fun(fullscreen)
}
}
/// Notifies the window of the state of the decorations.