BoxTree: Remove some unused code