From a61cbeacfd3e5132ef5cb6774978f861033880bc Mon Sep 17 00:00:00 2001 From: Kaloian Manassiev Date: Wed, 1 Mar 2017 14:15:00 -0500 Subject: SERVER-28155 Remove usages of BSONSerializable outside of sharding --- src/mongo/db/auth/privilege_parser.h | 7 +++---- src/mongo/db/field_parser.h | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/mongo/db/auth/privilege_parser.h b/src/mongo/db/auth/privilege_parser.h index 6275dcc2a3d..aa78c5c67d7 100644 --- a/src/mongo/db/auth/privilege_parser.h +++ b/src/mongo/db/auth/privilege_parser.h @@ -33,7 +33,6 @@ #include "mongo/base/string_data.h" #include "mongo/db/jsobj.h" -#include "mongo/s/bson_serializable.h" namespace mongo { @@ -43,7 +42,7 @@ class Privilege; * This class is used to parse documents describing resources as they are represented as part * of privileges granted to roles in the role management commands. */ -class ParsedResource : BSONSerializable { +class ParsedResource { MONGO_DISALLOW_COPYING(ParsedResource); public: @@ -74,7 +73,7 @@ public: BSONObj toBSON() const; bool parseBSON(const BSONObj& source, std::string* errMsg); void clear(); - virtual std::string toString() const; + std::string toString() const; // // individual field accessors @@ -123,7 +122,7 @@ private: /** * This class is used to parse documents describing privileges in the role managment commands. */ -class ParsedPrivilege : BSONSerializable { +class ParsedPrivilege { MONGO_DISALLOW_COPYING(ParsedPrivilege); public: diff --git a/src/mongo/db/field_parser.h b/src/mongo/db/field_parser.h index 01487d8c894..376bd66f561 100644 --- a/src/mongo/db/field_parser.h +++ b/src/mongo/db/field_parser.h @@ -31,7 +31,6 @@ #include #include "mongo/db/jsobj.h" -#include "mongo/s/bson_serializable.h" #include "mongo/util/time_support.h" namespace mongo { -- cgit v1.2.1