Remove unused method from TreeNode.