diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-02-11 16:12:00 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-13 20:05:44 +0000 |
commit | 2bf81c1377b893511179f05f89194a777df450f4 (patch) | |
tree | 2c60835c61dc94bf389afa1058be9f5978ba5d4f /src/mongo/bson | |
parent | 00477b903ef7b06b4e561f8cca06f2ad580815a5 (diff) | |
download | mongo-2bf81c1377b893511179f05f89194a777df450f4.tar.gz |
SERVER-46107 Manual conversion of log statements
Diffstat (limited to 'src/mongo/bson')
-rw-r--r-- | src/mongo/bson/bsonobj.cpp | 12 | ||||
-rw-r--r-- | src/mongo/bson/bsonobj.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/bson/bsonobj.cpp b/src/mongo/bson/bsonobj.cpp index dc37c075b5a..2144f801ee4 100644 --- a/src/mongo/bson/bsonobj.cpp +++ b/src/mongo/bson/bsonobj.cpp @@ -579,18 +579,6 @@ Status BSONObj::storageValidEmbedded() const { return Status::OK(); } -void BSONObj::dump() const { - LogstreamBuilder builder = log(); - builder << std::hex; - const char* p = objdata(); - for (int i = 0; i < objsize(); i++) { - builder << i << '\t' << (0xff & ((unsigned)*p)); - if (*p >= 'A' && *p <= 'z') - builder << '\t' << *p; - p++; - } -} - void BSONObj::getFields(unsigned n, const char** fieldNames, BSONElement* fields) const { BSONObjIterator i(*this); while (i.more()) { diff --git a/src/mongo/bson/bsonobj.h b/src/mongo/bson/bsonobj.h index fbdb1c7f791..215652bcd29 100644 --- a/src/mongo/bson/bsonobj.h +++ b/src/mongo/bson/bsonobj.h @@ -434,8 +434,6 @@ public: return objsize() <= kMinBSONLength; } - void dump() const; - /** Alternative output format */ std::string hexDump() const; |