diff options
author | dwight <dwight@10gen.com> | 2011-05-23 10:32:59 -0400 |
---|---|---|
committer | dwight <dwight@10gen.com> | 2011-05-23 20:03:16 -0400 |
commit | 16f7b4fe65193cdc9db3d18b36cb0f74025cf8d7 (patch) | |
tree | b68f6ce88866f43c2f138e0dbb3acd8de5325bd4 /db/jsobj.cpp | |
parent | 0eebdbfe9daf4688c64e2f257a70102abae83e0d (diff) | |
download | mongo-16f7b4fe65193cdc9db3d18b36cb0f74025cf8d7.tar.gz |
some bson methods should be inline and were not
Diffstat (limited to 'db/jsobj.cpp')
-rw-r--r-- | db/jsobj.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/db/jsobj.cpp b/db/jsobj.cpp index 6a6aff55f31..218b2e06545 100644 --- a/db/jsobj.cpp +++ b/db/jsobj.cpp @@ -855,21 +855,6 @@ namespace mongo { return BSONElement(); } - int BSONObj::getIntField(const char *name) const { - BSONElement e = getField(name); - return e.isNumber() ? (int) e.number() : INT_MIN; - } - - bool BSONObj::getBoolField(const char *name) const { - BSONElement e = getField(name); - return e.type() == Bool ? e.boolean() : false; - } - - const char * BSONObj::getStringField(const char *name) const { - BSONElement e = getField(name); - return e.type() == String ? e.valuestr() : ""; - } - /* grab names of all the fields in this object */ int BSONObj::getFieldNames(set<string>& fields) const { int n = 0; |