Skip to content

Commit 4c47e31

Browse files
authored
bevy_reflect: Remove U32Visitor (#12433)
# Objective The `U32Visitor` struct has been unused since its introduction in #6140. It's made itself known now by causing a recent [CI failure](https://github.com/bevyengine/bevy/actions/runs/8243333274/job/22543736624). ## Solution Remove the unused `U32Visitor` struct. Also removed `PrepassLightsViewFlush` as it was causing a [similar CI failure](https://github.com/bevyengine/bevy/actions/runs/8243838066/job/22545103746?pr=12433#step:6:269) on this PR.
1 parent c729859 commit 4c47e31

File tree

2 files changed

+0
-20
lines changed
  • crates

2 files changed

+0
-20
lines changed

crates/bevy_pbr/src/prepass/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,3 @@ pub type DrawPrepass<M> = (
942942
SetMaterialBindGroup<M, 2>,
943943
DrawMesh,
944944
);
945-
946-
#[derive(Debug, Hash, PartialEq, Eq, Clone, SystemSet)]
947-
struct PrepassLightsViewFlush;

crates/bevy_reflect/src/serde/de.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -240,23 +240,6 @@ impl<'de> Deserialize<'de> for Ident {
240240
}
241241
}
242242

243-
struct U32Visitor;
244-
245-
impl<'de> Visitor<'de> for U32Visitor {
246-
type Value = u32;
247-
248-
fn expecting(&self, formatter: &mut Formatter) -> fmt::Result {
249-
formatter.write_str("u32")
250-
}
251-
252-
fn visit_u32<E>(self, v: u32) -> Result<Self::Value, E>
253-
where
254-
E: Error,
255-
{
256-
Ok(v)
257-
}
258-
}
259-
260243
/// A general purpose deserializer for reflected types.
261244
///
262245
/// This will return a [`Box<dyn Reflect>`] containing the deserialized data.

0 commit comments

Comments
 (0)