From 423a65720edb43703cca9aef04592c709afbd9b7 Mon Sep 17 00:00:00 2001 From: Scott Hernandez Date: Wed, 13 Nov 2013 23:29:54 -0500 Subject: SERVER-11324: Allow unique index if prefixed by hashed shard key --- src/mongo/db/keypattern.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/mongo/db/keypattern.h') diff --git a/src/mongo/db/keypattern.h b/src/mongo/db/keypattern.h index 7e79f7fbb08..b5ba777cecd 100644 --- a/src/mongo/db/keypattern.h +++ b/src/mongo/db/keypattern.h @@ -84,14 +84,6 @@ namespace mongo { */ BSONElement getField( const char* fieldname ) const { return _pattern[ fieldname ]; } - /* - * Returns true if the key described by this KeyPattern is a prefix of - * the (potentially) compound key described by 'other' - */ - bool isPrefixOf( const KeyPattern& other ) const { - return _pattern.isPrefixOf( other.toBSON() ); - } - /** * Is the provided key pattern the index over the ID field? * The always required ID index is always {_id: 1} or {_id: -1}. -- cgit v1.2.1