diff --git a/binaries/data/mods/public/simulation/components/UnitAI.js b/binaries/data/mods/public/simulation/components/UnitAI.js index c6e2d0a428..77466d14da 100644 --- a/binaries/data/mods/public/simulation/components/UnitAI.js +++ b/binaries/data/mods/public/simulation/components/UnitAI.js @@ -996,7 +996,6 @@ UnitAI.prototype.UnitFsmSpec = { // Start the timer on the next turn to catch up with potential stragglers. this.StartTimer(100, 2000); this.isIdle = true; - this.CallMemberFunction("ResetIdle"); return false; }, @@ -3514,18 +3513,6 @@ UnitAI.prototype.IsIdle = function() return this.isIdle; }; -/** - * Used by formation controllers to toggle the idleness of their members. - */ -UnitAI.prototype.ResetIdle = function() -{ - const shouldBeIdle = this.GetCurrentState().endsWith(".IDLE"); - if (this.isIdle == shouldBeIdle) - return; - this.isIdle = shouldBeIdle; - Engine.PostMessage(this.entity, MT_UnitIdleChanged, { "idle": this.isIdle }); -}; - UnitAI.prototype.SetGarrisoned = function() { // UnitAI caches its own garrisoned state for performance.