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:
parent
4ba2435eaf
commit
875b0c2c02
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user