Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy committed Aug 20, 2024
1 parent 68b7d36 commit fc9baac
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions wgpu/src/backend/wgpu_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,29 +440,13 @@ pub struct Surface {
configured_device: Mutex<Option<wgc::id::DeviceId>>,
}

impl Surface {
// Not used on every platform
#[allow(dead_code)]
pub fn id(&self) -> wgc::id::SurfaceId {
self.id
}
}

#[derive(Debug)]
pub struct Device {
id: wgc::id::DeviceId,
error_sink: ErrorSink,
features: Features,
}

impl Device {
// Not used on every platform
#[allow(dead_code)]
pub fn id(&self) -> wgc::id::DeviceId {
self.id
}
}

#[derive(Debug)]
pub struct Buffer {
id: wgc::id::BufferId,
Expand All @@ -481,28 +465,12 @@ pub struct Texture {
error_sink: ErrorSink,
}

impl Texture {
// Not used on every platform
#[allow(dead_code)]
pub fn id(&self) -> wgc::id::TextureId {
self.id
}
}

#[derive(Debug)]
pub struct Queue {
id: wgc::id::QueueId,
error_sink: ErrorSink,
}

impl Queue {
// Not used on every platform
#[allow(dead_code)]
pub fn id(&self) -> wgc::id::QueueId {
self.id
}
}

#[derive(Debug)]
pub struct ComputePass {
pass: wgc::command::ComputePass,
Expand Down

0 comments on commit fc9baac

Please sign in to comment.