@@ -1251,31 +1251,25 @@ pub struct FloatingWindowPositions {
12511251}
12521252
12531253impl FloatingWindowPositions {
1254- pub fn store_position ( & mut self , window_id : WindowId , position : CGRect ) {
1254+ fn store_position ( & mut self , window_id : WindowId , position : CGRect ) {
12551255 self . positions . insert ( window_id, position) ;
12561256 }
12571257
1258- pub fn store_if_absent ( & mut self , window_id : WindowId , position : CGRect ) {
1258+ fn store_if_absent ( & mut self , window_id : WindowId , position : CGRect ) {
12591259 self . positions . entry ( window_id) . or_insert ( position) ;
12601260 }
12611261
1262- pub fn get_position ( & self , window_id : WindowId ) -> Option < CGRect > {
1262+ fn get_position ( & self , window_id : WindowId ) -> Option < CGRect > {
12631263 self . positions . get ( & window_id) . copied ( )
12641264 }
12651265
1266- pub fn remove_position ( & mut self , window_id : WindowId ) -> Option < CGRect > {
1266+ fn remove_position ( & mut self , window_id : WindowId ) -> Option < CGRect > {
12671267 self . positions . remove ( & window_id)
12681268 }
12691269
1270- pub fn windows ( & self ) -> impl Iterator < Item = WindowId > + ' _ { self . positions . keys ( ) . copied ( ) }
1270+ fn windows ( & self ) -> impl Iterator < Item = WindowId > + ' _ { self . positions . keys ( ) . copied ( ) }
12711271
1272- pub fn clear ( & mut self ) { self . positions . clear ( ) ; }
1273-
1274- pub fn contains_window ( & self , window_id : WindowId ) -> bool {
1275- self . positions . contains_key ( & window_id)
1276- }
1277-
1278- pub fn remove_app_windows ( & mut self , pid : pid_t ) {
1272+ fn remove_app_windows ( & mut self , pid : pid_t ) {
12791273 self . positions . retain ( |window_id, _| window_id. pid != pid) ;
12801274 }
12811275}
0 commit comments