0
0
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:
Eliot Horowitz 2009-03-12 17:12:24 -04:00
parent abc5ac640e
commit 2a1c3b1492
2 changed files with 1 additions and 9 deletions

View File

@ -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.

View File

@ -32,7 +32,6 @@ namespace mongo {
int port = 27017;
const char *curNs = "";
Database *database = 0;
string Model::defaultServer;
string ourHostname;
string getDbContext() {