0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-28 07:59:02 +01:00

SERVER-15176 remove dead code from find.cpp

This commit is contained in:
David Storch 2015-03-20 16:43:13 -04:00
parent 4ba2435eaf
commit 875b0c2c02

View File

@ -72,16 +72,6 @@ namespace mongo {
namespace {
// TODO: Remove this or use it.
bool hasIndexSpecifier(const mongo::LiteParsedQuery& pq) {
return !pq.getHint().isEmpty() || !pq.getMin().isEmpty() || !pq.getMax().isEmpty();
}
bool enough(const mongo::LiteParsedQuery& pq, int n) {
if (0 == pq.getNumToReturn()) { return false; }
return n >= pq.getNumToReturn();
}
/**
* Returns true if 'me' is a GTE or GE predicate over the "ts" field.
* Such predicates can be used for the oplog start hack.