Remove unused trait method

Rust 1.78.0 starts warning about this.
This commit is contained in:
Hanno Braun 2024-05-06 13:02:36 +02:00
parent 57d61b359b
commit 4b5e24df59

View File

@ -177,7 +177,6 @@ pub fn load_model(
} }
pub trait DrawModel<'a> { pub trait DrawModel<'a> {
fn draw_mesh(&mut self, mesh: &'a Mesh, material: &'a Material);
fn draw_mesh_instanced( fn draw_mesh_instanced(
&mut self, &mut self,
mesh: &'a Mesh, mesh: &'a Mesh,
@ -193,10 +192,6 @@ impl<'a, 'b> DrawModel<'b> for wgpu::RenderPass<'a>
where where
'b: 'a, 'b: 'a,
{ {
fn draw_mesh(&mut self, mesh: &'b Mesh, material: &'b Material) {
self.draw_mesh_instanced(mesh, material, 0..1);
}
fn draw_mesh_instanced( fn draw_mesh_instanced(
&mut self, &mut self,
mesh: &'b Mesh, mesh: &'b Mesh,