From 2a469ee7af51dfb78bd266b8ae7de288d803d084 Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Thu, 6 May 2021 06:52:25 -0400 Subject: SERVER-56513 remove KeyPattern::isIdKeyPattern() This is redundant when we have IndexDescriptor::isIdIndex(). --- src/mongo/db/keypattern.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/mongo/db/keypattern.h') 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 @@ -52,12 +52,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? */ -- cgit v1.2.1