Removing unused filetree traversal function