diff --git a/crates/egui/src/widgets/checkbox.rs b/crates/egui/src/widgets/checkbox.rs index a9c0749fc..9310c64d5 100644 --- a/crates/egui/src/widgets/checkbox.rs +++ b/crates/egui/src/widgets/checkbox.rs @@ -70,9 +70,6 @@ impl Widget for Checkbox<'_> { // Get the widget style by reading the response from the previous pass let id = ui.next_auto_id(); - let response: Option = ui.ctx().read_response(id); - let state = response.map(|r| r.widget_state()).unwrap_or_default(); - let CheckboxStyle { check_size, checkbox_frame, diff --git a/crates/egui/src/widgets/separator.rs b/crates/egui/src/widgets/separator.rs index bb4ae1ab9..e188d4127 100644 --- a/crates/egui/src/widgets/separator.rs +++ b/crates/egui/src/widgets/separator.rs @@ -101,8 +101,6 @@ impl Widget for Separator { // Get the widget style by reading the response from the previous pass let id = ui.next_auto_id(); - let response: Option = ui.ctx().read_response(id); - let state = response.map(|r| r.widget_state()).unwrap_or_default(); let SeparatorStyle { spacing: spacing_style, stroke,