summaryrefslogtreecommitdiff
path: root/src/mongo/bson
diff options
context:
space:
mode:
authorMarko Vojvodic <marko.vojvodic@mongodb.com>2016-10-28 14:10:09 -0400
committerMarko Vojvodic <marko.vojvodic@mongodb.com>2016-11-07 11:37:15 -0500
commit8f769688f5b8ca6fa11e07d02600dbbb50178cff (patch)
treec300ea4cd710c19a2922a0ca512d805d12e2e10b /src/mongo/bson
parentf5c613f11f170cadd4b698d108b3c7b636913568 (diff)
downloadmongo-8f769688f5b8ca6fa11e07d02600dbbb50178cff.tar.gz
SERVER-26672 Generate exact bounds for timestamps in index bounds builder
This commit also replaces BSONElement::isSimpleType with Indexability::isExactBoundsGenerating, since the isSimpleType construct was only used within the query system.
Diffstat (limited to 'src/mongo/bson')
-rw-r--r--src/mongo/bson/bsonelement.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mongo/bson/bsonelement.h b/src/mongo/bson/bsonelement.h
index 9e9ee9e60da..111cbad442f 100644
--- a/src/mongo/bson/bsonelement.h
+++ b/src/mongo/bson/bsonelement.h
@@ -297,9 +297,6 @@ public:
*/
bool trueValue() const;
- /** True if number, string, bool, date, OID */
- bool isSimpleType() const;
-
/** True if element is of a numeric type. */
bool isNumber() const;
@@ -709,22 +706,6 @@ inline bool BSONElement::isNumber() const {
}
}
-inline bool BSONElement::isSimpleType() const {
- switch (type()) {
- case NumberLong:
- case NumberDouble:
- case NumberInt:
- case NumberDecimal:
- case mongo::String:
- case mongo::Bool:
- case mongo::Date:
- case jstOID:
- return true;
- default:
- return false;
- }
-}
-
inline Decimal128 BSONElement::numberDecimal() const {
switch (type()) {
case NumberDouble: