core: get rid of unused variable