Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
dwight committed Aug 26, 2014
1 parent e4ff6ac commit b5cc460
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/bson/bson.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ namespace _bson {
}

int bsonelement::_valuesize() const {
// const char *p = valueStart;
unsigned char tp = (unsigned char)type();
unsigned z = iter::sizeForBsonType[tp ];
unsigned sz = 0;
Expand Down Expand Up @@ -119,7 +118,7 @@ namespace _bson {
return totalSize;
}

inline int bsonelement::sizeOld() const {
int bsonelement::sizeOld() const {
if (totalSize >= 0)
return totalSize;

Expand Down Expand Up @@ -234,7 +233,6 @@ namespace _bson {
return bsonelement();
}


const string bsonobjbuilder::numStrs[] = {
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
"10", "11", "12", "13", "14", "15", "16", "17", "18", "19",
Expand Down Expand Up @@ -451,7 +449,8 @@ namespace _bson {
s << (isArray ? " ]" : " }");
}

inline int bsonelement::size(int maxLen) const {
// version with bound checking (maxLen param)
int bsonelement::size(int maxLen) const {
if (totalSize >= 0)
return totalSize;

Expand Down

0 comments on commit b5cc460

Please sign in to comment.