Skip to content

Commit 37f64e4

Browse files
committed
Remove unnecessary new constuctor
1 parent f86bbf6 commit 37f64e4

File tree

1 file changed

+0
-6
lines changed
  • crates/bevy_transform/src

1 file changed

+0
-6
lines changed

crates/bevy_transform/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ pub struct TransformBundle {
4242
}
4343

4444
impl TransformBundle {
45-
/// Creates a new [`TransformBundle`] from a [`Transform`] and a [`GlobalTransform`].
46-
#[inline]
47-
pub fn new(local: Transform, global: GlobalTransform) -> Self {
48-
TransformBundle { local, global }
49-
}
50-
5145
/// Creates a new [`TransformBundle`] from a [`Transform`] and leaving [`GlobalTransform`] with
5246
/// no translation, rotation, and a scale of 1 on all axes.
5347
#[inline]

0 commit comments

Comments
 (0)