Skip to content

Commit

Permalink
Remove unnecessary use from examples (#5583)
Browse files Browse the repository at this point in the history
# Objective

`bevy::render::texture::ImageSettings` was added to prelude in #5566, so these `use` statements are unnecessary and the examples can be made a bit more concise.

## Solution

Remove `use bevy::render::texture::ImageSettings`
  • Loading branch information
Piturnah committed Aug 6, 2022
1 parent 1152111 commit c27cc59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/2d/sprite_sheet.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Renders an animated sprite by loading all animation frames from a single image (a sprite sheet)
//! into a texture atlas, and changing the displayed image periodically.
use bevy::{prelude::*, render::texture::ImageSettings};
use bevy::prelude::*;

fn main() {
App::new()
Expand Down
2 changes: 1 addition & 1 deletion examples/2d/texture_atlas.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! In this example we generate a new texture atlas (sprite sheet) from a folder containing
//! individual sprites.
use bevy::{asset::LoadState, prelude::*, render::texture::ImageSettings};
use bevy::{asset::LoadState, prelude::*};

fn main() {
App::new()
Expand Down
5 changes: 1 addition & 4 deletions examples/3d/shapes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
use bevy::{
prelude::*,
render::{
render_resource::{Extent3d, TextureDimension, TextureFormat},
texture::ImageSettings,
},
render::render_resource::{Extent3d, TextureDimension, TextureFormat},
};

fn main() {
Expand Down

0 comments on commit c27cc59

Please sign in to comment.