Remove unneeded function

This functions should have been removed when the callback-type traversal
was removed.
Add macros for traversals

This patch adds quick 'foreach' macros for simple tree traversal