From f60f59c693af80cbfcdefaf7690b6820e22ebd58 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Wed, 14 Oct 2015 04:24:20 -0400 Subject: [PATCH] Remove unused field. --- src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp | 2 -- src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp b/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp index e54ae1a638..ff3b2ef8d4 100644 --- a/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp +++ b/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp @@ -101,8 +101,6 @@ class RectangleTree SplitHistoryStruct splitHistory; //! The distance from the centroid of this node to the centroid of the parent. double parentDistance; - //! The discance to the furthest descendant, cached to speed things up. - double furthestDescendantDistance; //! The dataset. const MatType* dataset; //! Whether or not we are responsible for deleting the dataset. This is diff --git a/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp b/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp index 4a44435721..8c2520c1a0 100644 --- a/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp +++ b/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp @@ -540,7 +540,7 @@ template::NumDescendants() const { - std::cout << "NumDescendants() [" << this << "], with " << numChildren + std::cout << "NumDescendants() [" << this << "], with " << numChildren << "children.\n"; if (numChildren == 0) { @@ -638,7 +638,6 @@ RectangleTree() : minLeafSize(0), splitHistory(0), parentDistance(0.0), - furthestDescendantDistance(0.0), dataset(NULL), ownsDataset(false), localDataset(NULL) @@ -976,7 +975,6 @@ void RectangleTree:: ar & CreateNVP(stat, "stat"); ar & CreateNVP(splitHistory, "splitHistory"); ar & CreateNVP(parentDistance, "parentDistance"); - ar & CreateNVP(furthestDescendantDistance, "furthestDescendantDistance"); ar & CreateNVP(dataset, "dataset"); // If we are loading and we are the root, we own the dataset.