Core/AI: Removed needless code
Merge pull request #9128 from m7nu3l/patch-1

Core/AI: Removed needless code