From 84144c942992dedc200ccd9dae008acbfc2b767a Mon Sep 17 00:00:00 2001 From: Isse Date: Thu, 13 Jan 2022 00:24:31 +0000 Subject: [PATCH] Remove documentation warning on EntityCommands::insert that is no longer necessary (#3653) # Objective - Removes warning about accidently inserting bundles with `EntityCommands::insert`, but since a component now needs to implement `Component` it is unnecessary. --- crates/bevy_ecs/src/system/commands/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/crates/bevy_ecs/src/system/commands/mod.rs b/crates/bevy_ecs/src/system/commands/mod.rs index 543f124282..6de329856c 100644 --- a/crates/bevy_ecs/src/system/commands/mod.rs +++ b/crates/bevy_ecs/src/system/commands/mod.rs @@ -417,16 +417,6 @@ impl<'w, 's, 'a> EntityCommands<'w, 's, 'a> { /// Adds a single [`Component`] to the entity. /// - /// See [`EntityMut::insert`](crate::world::EntityMut::insert) for more - /// details. - /// - /// # Warning - /// - /// It's possible to call this with a bundle, but this is likely not intended and - /// [`Self::insert_bundle`] should be used instead. If `with` is called with a bundle, the - /// bundle itself will be added as a component instead of the bundles' inner components each - /// being added. - /// /// # Example /// /// `Self::insert` can be chained with [`Commands::spawn`].