Remove unused variable in _executor_internal