summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorAdam Chelminski <adam.chelminski@mongodb.com>2016-08-15 10:47:55 -0400
committerAdam Chelminski <adam.chelminski@mongodb.com>2016-08-15 10:47:55 -0400
commitd19d5cdb3a2dd6905361545239c7c37d07cf5aba (patch)
tree1a695b8aeda09d3baea8bf3481ec30f7b1ece625 /src/mongo
parent0b2645558c9715128dceb524660b603e9d8532d6 (diff)
downloadmongo-d19d5cdb3a2dd6905361545239c7c37d07cf5aba.tar.gz
Revert "SERVER-13517 Specialize operator<< for BSONType for std::ostream, LogstreamBuilder, and StringBuilder"
This reverts commit 0b2645558c9715128dceb524660b603e9d8532d6.
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/bson/bsontypes.cpp4
-rw-r--r--src/mongo/bson/bsontypes.h7
-rw-r--r--src/mongo/bson/util/builder.h5
-rw-r--r--src/mongo/logger/logstream_builder.h6
4 files changed, 0 insertions, 22 deletions
diff --git a/src/mongo/bson/bsontypes.cpp b/src/mongo/bson/bsontypes.cpp
index 8ff370ec12f..ee806e0e8a7 100644
--- a/src/mongo/bson/bsontypes.cpp
+++ b/src/mongo/bson/bsontypes.cpp
@@ -95,10 +95,6 @@ const char* typeName(BSONType type) {
}
}
-std::ostream& operator<<(std::ostream& stream, BSONType type) {
- return stream << typeName(type);
-}
-
bool isValidBSONType(int type) {
switch (type) {
case MinKey:
diff --git a/src/mongo/bson/bsontypes.h b/src/mongo/bson/bsontypes.h
index e3fde085ad9..622547ca098 100644
--- a/src/mongo/bson/bsontypes.h
+++ b/src/mongo/bson/bsontypes.h
@@ -29,8 +29,6 @@
#pragma once
-#include <iosfwd>
-
#include "mongo/config.h"
#include "mongo/platform/decimal128.h"
#include "mongo/util/assert_util.h"
@@ -120,11 +118,6 @@ enum BSONType {
const char* typeName(BSONType type);
/**
- * Prints the name of the argument's type to the given stream.
- */
-std::ostream& operator<<(std::ostream& stream, BSONType type);
-
-/**
* Returns whether or not 'type' can be converted to a valid BSONType.
*/
bool isValidBSONType(int type);
diff --git a/src/mongo/bson/util/builder.h b/src/mongo/bson/util/builder.h
index e6d29ceb175..2cce0d93ad5 100644
--- a/src/mongo/bson/util/builder.h
+++ b/src/mongo/bson/util/builder.h
@@ -41,7 +41,6 @@
#include "mongo/base/data_view.h"
#include "mongo/base/disallow_copying.h"
#include "mongo/base/string_data.h"
-#include "mongo/bson/bsontypes.h"
#include "mongo/bson/inline_decls.h"
#include "mongo/platform/decimal128.h"
#include "mongo/stdx/type_traits.h"
@@ -412,10 +411,6 @@ public:
append(str);
return *this;
}
- StringBuilderImpl& operator<<(BSONType type) {
- append(typeName(type));
- return *this;
- }
void appendDoubleNice(double x) {
const int prev = _buf.l;
diff --git a/src/mongo/logger/logstream_builder.h b/src/mongo/logger/logstream_builder.h
index 001175e6e1c..04e1583073c 100644
--- a/src/mongo/logger/logstream_builder.h
+++ b/src/mongo/logger/logstream_builder.h
@@ -31,7 +31,6 @@
#include <sstream>
#include <string>
-#include "mongo/bson/bsontypes.h"
#include "mongo/logger/labeled_level.h"
#include "mongo/logger/log_component.h"
#include "mongo/logger/log_severity.h"
@@ -190,11 +189,6 @@ public:
return *this;
}
- LogstreamBuilder& operator<<(BSONType t) {
- stream() << typeName(t);
- return *this;
- }
-
template <typename T>
LogstreamBuilder& operator<<(const T& x) {
stream() << x.toString();