summaryrefslogtreecommitdiff
path: root/db/jsobj.cpp
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2011-05-23 10:32:59 -0400
committerdwight <dwight@10gen.com>2011-05-23 20:03:16 -0400
commit16f7b4fe65193cdc9db3d18b36cb0f74025cf8d7 (patch)
treeb68f6ce88866f43c2f138e0dbb3acd8de5325bd4 /db/jsobj.cpp
parent0eebdbfe9daf4688c64e2f257a70102abae83e0d (diff)
downloadmongo-16f7b4fe65193cdc9db3d18b36cb0f74025cf8d7.tar.gz
some bson methods should be inline and were not
Diffstat (limited to 'db/jsobj.cpp')
-rw-r--r--db/jsobj.cpp15
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;