summaryrefslogtreecommitdiff
path: root/bson
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2010-07-27 11:52:06 -0400
committerMathias Stearn <mathias@10gen.com>2010-07-27 17:18:43 -0400
commit16ab1bcbe6bc47cd84e7521ea3dcff8a7afdbdcd (patch)
tree1bb16f802805c204288cc18d2aad054b34bbf045 /bson
parent18132e81cb12c2b5b90bd556a4f16e233a74e0c9 (diff)
downloadmongo-16ab1bcbe6bc47cd84e7521ea3dcff8a7afdbdcd.tar.gz
Remove tautologous test. validate() used the same formula as size()
Diffstat (limited to 'bson')
-rw-r--r--bson/bsoninlines.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/bson/bsoninlines.h b/bson/bsoninlines.h
index 2e4cc754044..7f7736fe361 100644
--- a/bson/bsoninlines.h
+++ b/bson/bsoninlines.h
@@ -253,13 +253,6 @@ namespace mongo {
case Symbol:
case mongo::String: {
int x = valuestrsize();
- if ( t == mongo::String && x + fieldNameSize() + 5 != size() ){
- StringBuilder buf;
- buf << "Invalid string size. element size: " << size() << " fieldNameSize: " << fieldNameSize() << " valuestrsize(): " << valuestrsize();
- cout << "ELIOT : " << buf.str() << endl;
- msgasserted( 13292 , buf.str() );
- }
-
if ( x > 0 && valuestr()[x-1] == 0 )
return;
StringBuilder buf;