[modules/core] Removed redundant variable.