summaryrefslogtreecommitdiff
path: root/src/mongo/db/geo/shapes.cpp
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2013-01-18 13:29:56 -0500
committerHari Khalsa <hkhalsa@10gen.com>2013-01-22 12:58:19 -0500
commit43ffb31e4c051fe1f50130289099d3983964e00e (patch)
treecda8e2a8a37f47f5297a0f4bd92ba5e3d0eb6a84 /src/mongo/db/geo/shapes.cpp
parent40ff66292da547bffc518c2720c72e89ca1edfca (diff)
downloadmongo-43ffb31e4c051fe1f50130289099d3983964e00e.tar.gz
unindexed center uses same math funcs as indexed. expand tests
Diffstat (limited to 'src/mongo/db/geo/shapes.cpp')
-rw-r--r--src/mongo/db/geo/shapes.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mongo/db/geo/shapes.cpp b/src/mongo/db/geo/shapes.cpp
index b1cc1ffd481..136ab1cf979 100644
--- a/src/mongo/db/geo/shapes.cpp
+++ b/src/mongo/db/geo/shapes.cpp
@@ -360,7 +360,6 @@ namespace mongo {
/////// Other methods
- // TODO(hk): is this really worthwhile?
/**
* Distance method that compares x or y coords when other direction is zero,
* avoids numerical error when distances are very close to radius but axis-aligned.
@@ -455,7 +454,6 @@ namespace mongo {
double b = p1.y - p2.y;
// Avoid numerical error if possible...
- // TODO(hk): not convinced this is worth it
if (a == 0) return abs(b);
if (b == 0) return abs(a);