Skip to content

Commit

Permalink
Remove unused variable in tiled helper
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Dec 20, 2023
1 parent ce23b4c commit 8e3b703
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/helpers/tiled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
}
}

Expand All @@ -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<Image> = load_context.load(asset_path.clone());
dependencies.push(asset_path);

TilemapTexture::Single(texture.clone())
}
Expand Down

0 comments on commit 8e3b703

Please sign in to comment.