mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-29 16:47:28 +01:00
get rid of Model::defaultServer since its not being used and complicates some things
This commit is contained in:
parent
abc5ac640e
commit
2a1c3b1492
@ -42,14 +42,7 @@ namespace mongo {
|
||||
virtual void serialize(BSONObjBuilder& to) = 0;
|
||||
virtual void unserialize(const BSONObj& from) = 0;
|
||||
|
||||
/** Define this as you see fit if you are using the default conn() implementation. */
|
||||
static string defaultServer;
|
||||
|
||||
/** Override this if you need to do fancier connection management than simply using globalConn. */
|
||||
virtual string modelServer(){
|
||||
uassert( "defaultServer not set" , defaultServer.size() );
|
||||
return defaultServer;
|
||||
}
|
||||
virtual string modelServer() = 0;
|
||||
|
||||
/** Load a single object.
|
||||
@return true if successful.
|
||||
|
@ -32,7 +32,6 @@ namespace mongo {
|
||||
int port = 27017;
|
||||
const char *curNs = "";
|
||||
Database *database = 0;
|
||||
string Model::defaultServer;
|
||||
string ourHostname;
|
||||
|
||||
string getDbContext() {
|
||||
|
Loading…
Reference in New Issue
Block a user