diff options
author | David Storch <david.storch@10gen.com> | 2015-08-06 16:07:56 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-08-06 16:36:03 -0400 |
commit | d150a9bb1d50d09e0d6193739a4347ba4f94ef69 (patch) | |
tree | 537cdf14c3c49914c357b3d612627a3fc9a5dd33 /src/mongo/db/query | |
parent | 5060d7202e49d34a7eaac21413c9e16bb15986bd (diff) | |
download | mongo-d150a9bb1d50d09e0d6193739a4347ba4f94ef69.tar.gz |
SERVER-19807 remove dead method LiteParsedQuery::isRecordIdMeta()
Diffstat (limited to 'src/mongo/db/query')
-rw-r--r-- | src/mongo/db/query/lite_parsed_query.cpp | 29 | ||||
-rw-r--r-- | src/mongo/db/query/lite_parsed_query.h | 7 |
2 files changed, 0 insertions, 36 deletions
diff --git a/src/mongo/db/query/lite_parsed_query.cpp b/src/mongo/db/query/lite_parsed_query.cpp index a357233e159..306a9856bc6 100644 --- a/src/mongo/db/query/lite_parsed_query.cpp +++ b/src/mongo/db/query/lite_parsed_query.cpp @@ -687,35 +687,6 @@ bool LiteParsedQuery::isTextScoreMeta(BSONElement elt) { } // static -bool LiteParsedQuery::isRecordIdMeta(BSONElement elt) { - // elt must be foo: {$meta: "recordId"} - if (mongo::Object != elt.type()) { - return false; - } - BSONObj metaObj = elt.Obj(); - BSONObjIterator metaIt(metaObj); - // must have exactly 1 element - if (!metaIt.more()) { - return false; - } - BSONElement metaElt = metaIt.next(); - if (!str::equals("$meta", metaElt.fieldName())) { - return false; - } - if (mongo::String != metaElt.type()) { - return false; - } - if (LiteParsedQuery::metaRecordId != metaElt.valuestr()) { - return false; - } - // must have exactly 1 element - if (metaIt.more()) { - return false; - } - return true; -} - -// static bool LiteParsedQuery::isValidSortOrder(const BSONObj& sortObj) { BSONObjIterator i(sortObj); while (i.more()) { diff --git a/src/mongo/db/query/lite_parsed_query.h b/src/mongo/db/query/lite_parsed_query.h index 6cace9ff874..5cc841922c0 100644 --- a/src/mongo/db/query/lite_parsed_query.h +++ b/src/mongo/db/query/lite_parsed_query.h @@ -135,13 +135,6 @@ public: static bool isTextScoreMeta(BSONElement elt); /** - * Helper function to identify recordId projection. - * - * Example: {a: {$meta: "recordId"}}. - */ - static bool isRecordIdMeta(BSONElement elt); - - /** * Helper function to validate a sort object. * Returns true if each element satisfies one of: * 1. a number with value 1 |