Core/AI: Removed needless code