From 2a835db42a7d8f515ad7c2fb692eee972662271f Mon Sep 17 00:00:00 2001 From: Yu Feng Date: Sun, 8 Jan 2017 18:12:11 -0800 Subject: [PATCH] remove unused side_distance from rectangle.h --- scipy/spatial/ckdtree/src/rectangle.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scipy/spatial/ckdtree/src/rectangle.h b/scipy/spatial/ckdtree/src/rectangle.h index 7d8dff0d7735..ee339e93c4b1 100644 --- a/scipy/spatial/ckdtree/src/rectangle.h +++ b/scipy/spatial/ckdtree/src/rectangle.h @@ -32,11 +32,10 @@ struct Rectangle { * of the same accessors. */ npy_float64 * const maxes() const { return &buf[0]; } npy_float64 * const mins() const { return &buf[0] + m; } - npy_float64 * const side_distances() const { return &buf[0] + m + m; } Rectangle(const npy_intp _m, const npy_float64 *_mins, - const npy_float64 *_maxes) : m(_m), buf(3 * m) { + const npy_float64 *_maxes) : m(_m), buf(2 * m) { /* copy array data */ /* FIXME: use std::vector ? */