Skip to content

Commit

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

`bevy::render::texture::ImageSettings` was added to prelude in bevyengine#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 authored and ItsDoot committed Feb 1, 2023
1 parent d567d40 commit e96748d
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 e96748d

Please sign in to comment.