[mlpack-git] master: Remove unused field. (f60f59c)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Oct 14 05:02:57 EDT 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/81e72d4410ae417f7a8536bd3c61865e2f62c934...ce49a4b5f0b7d12d4955c09e45c69891a6f83e8a

>---------------------------------------------------------------

commit f60f59c693af80cbfcdefaf7690b6820e22ebd58
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Oct 14 04:24:20 2015 -0400

    Remove unused field.


>---------------------------------------------------------------

f60f59c693af80cbfcdefaf7690b6820e22ebd58
 src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp      | 2 --
 src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp | 2 --
 2 files changed, 4 deletions(-)

diff --git a/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp b/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp
index e54ae1a..ff3b2ef 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 4a44435..8c2520c 100644
--- a/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp
@@ -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<MetricType, StatisticType, MatType, SplitType, DescentType>::
   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.



More information about the mlpack-git mailing list