Remove 'repo' argument as it isn't used by function

Fixes #18371