Skip to content

Commit

Permalink
examples/common/src/framework.rs: removing unused attribute window
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Oct 25, 2023
1 parent 57d3555 commit 352fca1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions examples/common/src/framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ pub trait Example: 'static + Sized {
}

struct Setup {
window: winit::window::Window,
event_loop: EventLoop<()>,
instance: wgpu::Instance,
size: winit::dpi::PhysicalSize<u32>,
Expand Down Expand Up @@ -245,7 +244,6 @@ async fn setup<E: Example>(title: &str) -> Setup {
.expect("Unable to find a suitable GPU adapter!");

Setup {
window,
event_loop,
instance,
size,
Expand All @@ -260,7 +258,6 @@ async fn setup<E: Example>(title: &str) -> Setup {

fn start<E: Example>(
#[cfg(not(target_arch = "wasm32"))] Setup {
window: _,
event_loop,
instance,
size,
Expand All @@ -270,7 +267,6 @@ fn start<E: Example>(
queue,
}: Setup,
#[cfg(target_arch = "wasm32")] Setup {
window: _,
event_loop,
instance,
size,
Expand Down

0 comments on commit 352fca1

Please sign in to comment.