summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonelement.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2013-12-24 15:27:14 -0500
committerMathias Stearn <mathias@10gen.com>2014-01-03 12:50:26 -0500
commitab48b396e5bc48cb27ce3bc2dbd28bf3b6a96851 (patch)
tree309ae1ffe7b09e05f4a594d97cee9a599755c092 /src/mongo/bson/bsonelement.h
parent04221630900335fc6ee0d9922edae9d29f02d66d (diff)
downloadmongo-ab48b396e5bc48cb27ce3bc2dbd28bf3b6a96851.tar.gz
SERVER-11903 Remove BSONElement::validate()
It was mostly used for improving the error messages about BSON that already failed validation, but it did not cover all validation cases. To replace this use case validateBSON was enhanced to include the _id of the invalid object in the error message.
Diffstat (limited to 'src/mongo/bson/bsonelement.h')
-rw-r--r--src/mongo/bson/bsonelement.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/bson/bsonelement.h b/src/mongo/bson/bsonelement.h
index a3dd39ee56d..7a150992936 100644
--- a/src/mongo/bson/bsonelement.h
+++ b/src/mongo/bson/bsonelement.h
@@ -376,9 +376,6 @@ namespace mongo {
/** Constructs an empty element */
BSONElement();
- /** Check that data is internally consistent. */
- void validate() const;
-
/** True if this element may contain subobjects. */
bool mayEncapsulate() const {
switch ( type() ) {