diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-03-01 14:15:00 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-03-01 16:11:38 -0500 |
commit | a61cbeacfd3e5132ef5cb6774978f861033880bc (patch) | |
tree | caa0f3f4e0986f662b6c8187456d73ae93ec54e1 /src | |
parent | bce3a20e72b320be0931948955459cf899167c1f (diff) | |
download | mongo-a61cbeacfd3e5132ef5cb6774978f861033880bc.tar.gz |
SERVER-28155 Remove usages of BSONSerializable outside of sharding
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/auth/privilege_parser.h | 7 | ||||
-rw-r--r-- | src/mongo/db/field_parser.h | 1 |
2 files changed, 3 insertions, 5 deletions
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 <string> #include "mongo/db/jsobj.h" -#include "mongo/s/bson_serializable.h" #include "mongo/util/time_support.h" namespace mongo { |