datastructure: tree: removing unwanted code