Avoid use of redundant function paramater

This commit is contained in:
Hanno Braun 2024-11-25 23:00:53 +01:00
parent e1e7e55e7b
commit 12b01648bd

View File

@ -89,9 +89,13 @@ impl Renderer {
pub fn render(
&mut self,
selected_operation: &dyn Operation,
_: &dyn Operation,
all_operations: &OpsLog,
) -> anyhow::Result<()> {
let Some(selected_operation) = all_operations.selected() else {
return Ok(());
};
let vertices = Geometry::vertices(&self.device, selected_operation);
let triangles = Geometry::triangles(&self.device, selected_operation);