Skip to content

Commit

Permalink
Merge pull request #499 from rparrett/unused-tiled
Browse files Browse the repository at this point in the history
Remove unused variable in tiled helper
  • Loading branch information
StarArawn authored Dec 20, 2023
2 parents ce23b4c + 8e3b703 commit b08a5d9
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 b08a5d9

Please sign in to comment.