Removed unnecessary arguments for walk_* functions

Fixes #14134