Removing helper function in favor of API addition.
Merge pull request #235 from mariomc/treeview2

Removing helper function in favor of API addition.