Skip to content

Commit 522c195

Browse files
KDecayItsDoot
KDecay
authored andcommitted
Remove margins.rs (bevyengine#4284)
# Objective - Closes bevyengine#335. - Part of the splitting process of bevyengine#3503. ## Solution - Remove the `margins.rs` file containing the `Margins` type. ## Reasons - It is unused inside of `bevy`. - The `Rect`/`UiRect` is identical to the `Margins` type and is also used for margins inside of `bevy` (rename of `Rect` happens in bevyengine#4276) - Discussion in bevyengine#3503. ## Changelog ### Removed - The `Margins` type got removed. ## Migration Guide - The `Margins` type got removed. To migrate you just have to change every occurrence of `Margins` to `UiRect`.
1 parent 490f0f9 commit 522c195

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed

crates/bevy_ui/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
//! This UI is laid out with the Flexbox paradigm (see <https://cssreference.io/flexbox/> ) except the vertical axis is inverted
55
mod flex;
66
mod focus;
7-
mod margins;
87
mod render;
98
mod ui_node;
109

@@ -15,14 +14,13 @@ pub mod widget;
1514
use bevy_render::camera::CameraTypePlugin;
1615
pub use flex::*;
1716
pub use focus::*;
18-
pub use margins::*;
1917
pub use render::*;
2018
pub use ui_node::*;
2119

2220
#[doc(hidden)]
2321
pub mod prelude {
2422
#[doc(hidden)]
25-
pub use crate::{entity::*, ui_node::*, widget::Button, Interaction, Margins};
23+
pub use crate::{entity::*, ui_node::*, widget::Button, Interaction};
2624
}
2725

2826
use bevy_app::prelude::*;

crates/bevy_ui/src/margins.rs

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)