diff options
author | David Storch <david.storch@10gen.com> | 2016-10-14 16:31:46 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-10-14 17:16:48 -0400 |
commit | dacb3f05f69568b651c0ba620fa075e5c902e177 (patch) | |
tree | 1d5badef095e038f50777b316680b919e1c8ae39 | |
parent | 8dbff3e5ce8df22b262f989f46dfc3c322fa7218 (diff) | |
download | mongo-dacb3f05f69568b651c0ba620fa075e5c902e177.tar.gz |
SERVER-24512 remove dead Interval code
-rw-r--r-- | src/mongo/db/query/interval.cpp | 50 | ||||
-rw-r--r-- | src/mongo/db/query/interval.h | 5 |
2 files changed, 0 insertions, 55 deletions
diff --git a/src/mongo/db/query/interval.cpp b/src/mongo/db/query/interval.cpp index 2f35dc2eccb..df80321eb60 100644 --- a/src/mongo/db/query/interval.cpp +++ b/src/mongo/db/query/interval.cpp @@ -261,54 +261,4 @@ void Interval::reverse() { std::swap(startInclusive, endInclusive); } -// -// Debug info -// - -// static -string Interval::cmpstr(IntervalComparison c) { - if (c == INTERVAL_EQUALS) { - return "INTERVAL_EQUALS"; - } - - // 'this' contains the other interval. - if (c == INTERVAL_CONTAINS) { - return "INTERVAL_CONTAINS"; - } - - // 'this' is contained by the other interval. - if (c == INTERVAL_WITHIN) { - return "INTERVAL_WITHIN"; - } - - // The two intervals intersect and 'this' is before the other interval. - if (c == INTERVAL_OVERLAPS_BEFORE) { - return "INTERVAL_OVERLAPS_BEFORE"; - } - - // The two intervals intersect and 'this is after the other interval. - if (c == INTERVAL_OVERLAPS_AFTER) { - return "INTERVAL_OVERLAPS_AFTER"; - } - - // There is no intersection. - if (c == INTERVAL_PRECEDES) { - return "INTERVAL_PRECEDES"; - } - - if (c == INTERVAL_PRECEDES_COULD_UNION) { - return "INTERVAL_PRECEDES_COULD_UNION"; - } - - if (c == INTERVAL_SUCCEEDS) { - return "INTERVAL_SUCCEEDS"; - } - - if (c == INTERVAL_UNKNOWN) { - return "INTERVAL_UNKNOWN"; - } - - return "NO IDEA DUDE"; -} - } // namespace mongo diff --git a/src/mongo/db/query/interval.h b/src/mongo/db/query/interval.h index 9743a989321..66767036f95 100644 --- a/src/mongo/db/query/interval.h +++ b/src/mongo/db/query/interval.h @@ -159,11 +159,6 @@ struct Interval { IntervalComparison compare(const Interval& other) const; - /** - * toString for IntervalComparison - */ - static std::string cmpstr(IntervalComparison c); - // // Mutation of intervals // |