From 75b50c90e85f18ba5a324af81ac129fc46450618 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Tue, 9 Sep 2025 11:18:00 +0200 Subject: [PATCH] Remove deprecated `Harness::wgpu_snapshot` and related fns (#7504) --- crates/egui_kittest/src/snapshot.rs | 42 ----------------------------- 1 file changed, 42 deletions(-) diff --git a/crates/egui_kittest/src/snapshot.rs b/crates/egui_kittest/src/snapshot.rs index d6c14163..bc58e7b4 100644 --- a/crates/egui_kittest/src/snapshot.rs +++ b/crates/egui_kittest/src/snapshot.rs @@ -636,48 +636,6 @@ impl Harness<'_, State> { } } -// Deprecated wgpu_snapshot functions -// TODO(lucasmerlin): Remove in 0.32 -#[expect(clippy::missing_errors_doc)] -#[cfg(feature = "wgpu")] -impl Harness<'_, State> { - #[deprecated( - since = "0.31.0", - note = "Use `try_snapshot_options` instead. This function will be removed in 0.32" - )] - pub fn try_wgpu_snapshot_options( - &mut self, - name: impl Into, - options: &SnapshotOptions, - ) -> SnapshotResult { - self.try_snapshot_options(name, options) - } - - #[deprecated( - since = "0.31.0", - note = "Use `try_snapshot` instead. This function will be removed in 0.32" - )] - pub fn try_wgpu_snapshot(&mut self, name: impl Into) -> SnapshotResult { - self.try_snapshot(name) - } - - #[deprecated( - since = "0.31.0", - note = "Use `snapshot_options` instead. This function will be removed in 0.32" - )] - pub fn wgpu_snapshot_options(&mut self, name: impl Into, options: &SnapshotOptions) { - self.snapshot_options(name, options); - } - - #[deprecated( - since = "0.31.0", - note = "Use `snapshot` instead. This function will be removed in 0.32" - )] - pub fn wgpu_snapshot(&mut self, name: &str) { - self.snapshot(name); - } -} - /// Utility to collect snapshot errors and display them at the end of the test. /// /// # Example