mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Remove dead code
This commit is contained in:
@@ -17,19 +17,6 @@ pub struct Memory {
|
||||
}
|
||||
|
||||
impl Memory {
|
||||
/// default_rect: where to put it if it does NOT exist
|
||||
pub fn get_or_create_window(&mut self, id: Id, default_rect: Rect) -> WindowState {
|
||||
if let Some(state) = self.windows.get(&id) {
|
||||
*state
|
||||
} else {
|
||||
let state = WindowState { rect: default_rect };
|
||||
self.windows.insert(id, state);
|
||||
self.window_order.push(id);
|
||||
state
|
||||
}
|
||||
}
|
||||
|
||||
/// default_rect: where to put it if it does NOT exist
|
||||
pub fn get_window(&mut self, id: Id) -> Option<WindowState> {
|
||||
self.windows.get(&id).cloned()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user