summaryrefslogtreecommitdiff
path: root/src/mongo/db/keypattern.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-05-06 06:52:25 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-06 11:20:13 +0000
commit2a469ee7af51dfb78bd266b8ae7de288d803d084 (patch)
tree0762a479dd0d05c98dad4ec8ac5d161d9b9ab42f /src/mongo/db/keypattern.h
parenta74037768d564795f745be0ab7cc61016d461f1e (diff)
downloadmongo-2a469ee7af51dfb78bd266b8ae7de288d803d084.tar.gz
SERVER-56513 remove KeyPattern::isIdKeyPattern()
This is redundant when we have IndexDescriptor::isIdIndex().
Diffstat (limited to 'src/mongo/db/keypattern.h')
-rw-r--r--src/mongo/db/keypattern.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/keypattern.h b/src/mongo/db/keypattern.h
index ac31301b7f2..eb3c9d9da41 100644
--- a/src/mongo/db/keypattern.h
+++ b/src/mongo/db/keypattern.h
@@ -53,12 +53,6 @@ namespace mongo {
class KeyPattern {
public:
/**
- * Is the provided key pattern the index over the ID field?
- * The always required ID index is always {_id: 1} or {_id: -1}.
- */
- static bool isIdKeyPattern(const BSONObj& pattern);
-
- /**
* Is the provided key pattern ordered increasing or decreasing or not?
*/
static bool isOrderedKeyPattern(const BSONObj& pattern);