Remove unused argument

The `parent` argument to `walk` is never used.