From 215e6c95be7370bdd29c75b904463f06f942b7c0 Mon Sep 17 00:00:00 2001 From: shan Date: Fri, 7 Oct 2022 13:21:32 -0700 Subject: More import adjusting. --- graphics/src/layer.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'graphics/src/layer.rs') diff --git a/graphics/src/layer.rs b/graphics/src/layer.rs index 08f07c0e..56a42a9d 100644 --- a/graphics/src/layer.rs +++ b/graphics/src/layer.rs @@ -244,16 +244,4 @@ impl<'a> Layer<'a> { } } } -} - -/// Returns the number of total vertices & total indices of all [`Mesh`]es. -pub fn attribute_count_of<'a>(meshes: &'a [Mesh<'a>]) -> (usize, usize) { - meshes - .iter() - .map(|Mesh { buffers, .. }| { - (buffers.vertices.len(), buffers.indices.len()) - }) - .fold((0, 0), |(total_v, total_i), (v, i)| { - (total_v + v, total_i + i) - }) -} +} \ No newline at end of file -- cgit