summaryrefslogtreecommitdiff
path: root/client/dbclient.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-12-14 02:40:37 -0500
committerEliot Horowitz <eliot@10gen.com>2010-12-14 02:40:37 -0500
commitd7569703d957e5a6a8021d0911dd4e75e655d864 (patch)
tree591be0811287eb03bfe9578e3b815653f1223687 /client/dbclient.h
parent573dcb41e4a0fbf5f711a5f4c82136964f3b2d75 (diff)
downloadmongo-d7569703d957e5a6a8021d0911dd4e75e655d864.tar.gz
replace countCommas with str::count
Diffstat (limited to 'client/dbclient.h')
-rw-r--r--client/dbclient.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/client/dbclient.h b/client/dbclient.h
index f4198107129..28df58edf7a 100644
--- a/client/dbclient.h
+++ b/client/dbclient.h
@@ -730,7 +730,7 @@ namespace mongo {
insert an object into the database
*/
virtual void insert( const string &ns , BSONObj obj );
-
+
/**
insert a vector of objects into the database
*/
@@ -751,14 +751,6 @@ namespace mongo {
virtual void killCursor( long long cursorID ) = 0;
- static int countCommas( const string& s ){
- int n = 0;
- for ( unsigned i=0; i<s.size(); i++ )
- if ( s[i] == ',' )
- n++;
- return n;
- }
-
virtual bool callRead( Message& toSend , Message& response ) = 0;
// virtual bool callWrite( Message& toSend , Message& response ) = 0; // TODO: add this if needed
virtual void say( Message& toSend ) = 0;