From 652ff7576cf32c9806344be8ff4881b9ff28efe3 Mon Sep 17 00:00:00 2001 From: daxpedda Date: Wed, 17 Jul 2024 10:38:30 +0200 Subject: [PATCH] Web: remove unused `CustomCursorError::Animation` (#3794) --- src/changelog/unreleased.md | 1 + src/platform/web.rs | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/changelog/unreleased.md b/src/changelog/unreleased.md index 565d45ea..5d4dc5bd 100644 --- a/src/changelog/unreleased.md +++ b/src/changelog/unreleased.md @@ -80,3 +80,4 @@ changelog entry. This feature was incomplete, and the equivalent functionality can be trivially achieved outside of `winit` using `objc2-ui-kit` and calling `UIDevice::currentDevice().userInterfaceIdiom()`. +- On Web, remove unused `platform::web::CustomCursorError::Animation`. diff --git a/src/platform/web.rs b/src/platform/web.rs index 3c610cd4..c3e570c3 100644 --- a/src/platform/web.rs +++ b/src/platform/web.rs @@ -423,7 +423,6 @@ impl Future for CustomCursorFuture { pub enum CustomCursorError { Blob, Decode(String), - Animation, } impl Display for CustomCursorError { @@ -431,9 +430,6 @@ impl Display for CustomCursorError { match self { Self::Blob => write!(f, "failed to create `Blob`"), Self::Decode(error) => write!(f, "failed to decode image: {error}"), - Self::Animation => { - write!(f, "found `CustomCursor` that is an animation when building an animation") - }, } } }