core: get rid of unused function parameters