From 8e3b7035e40d790d9d2070401a82c036792eeb83 Mon Sep 17 00:00:00 2001 From: Rob Parrett Date: Wed, 20 Dec 2023 14:36:25 -0700 Subject: [PATCH] Remove unused variable in tiled helper --- examples/helpers/tiled.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/helpers/tiled.rs b/examples/helpers/tiled.rs index f2ac0256..835febe1 100644 --- a/examples/helpers/tiled.rs +++ b/examples/helpers/tiled.rs @@ -121,7 +121,6 @@ impl AssetLoader for TiledLoader { std::io::Error::new(ErrorKind::Other, format!("Could not load TMX map: {e}")) })?; - let mut dependencies = Vec::new(); let mut tilemap_textures = HashMap::default(); #[cfg(not(feature = "atlas"))] let mut tile_image_offsets = HashMap::default(); @@ -154,7 +153,6 @@ impl AssetLoader for TiledLoader { tile_image_offsets .insert((tileset_index, tile_id), tile_images.len() as u32); tile_images.push(texture.clone()); - dependencies.push(asset_path); } } @@ -171,7 +169,6 @@ impl AssetLoader for TiledLoader { let tile_path = tmx_dir.join(&img.source); let asset_path = AssetPath::from(tile_path); let texture: Handle = load_context.load(asset_path.clone()); - dependencies.push(asset_path); TilemapTexture::Single(texture.clone()) }