diff options
author | Matt Dannenberg <matt.dannenberg@10gen.com> | 2013-05-15 16:25:10 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2013-06-18 12:51:15 -0400 |
commit | c020b94a9e3154cf0b18ea8e504992f2ab3ae885 (patch) | |
tree | 48eebfe68c6d6a3c256b305018874e0d40ceb7b9 /src/mongo/db/pipeline/value.h | |
parent | 800da131d4b2877ec924f6a45dadc8574645211c (diff) | |
download | mongo-c020b94a9e3154cf0b18ea8e504992f2ab3ae885.tar.gz |
removes legacy Value "createType" functions
uses constructor instead
Diffstat (limited to 'src/mongo/db/pipeline/value.h')
-rw-r--r-- | src/mongo/db/pipeline/value.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mongo/db/pipeline/value.h b/src/mongo/db/pipeline/value.h index e1772ca8dff..26113876265 100644 --- a/src/mongo/db/pipeline/value.h +++ b/src/mongo/db/pipeline/value.h @@ -224,17 +224,6 @@ namespace mongo { /// Call this after memcpying to update ref counts if needed void memcpyed() const { _storage.memcpyed(); } - // LEGACY creation functions - static Value createFromBsonElement(const BSONElement* pBsonElement); - static Value createInt(int value) { return Value(value); } - static Value createLong(long long value) { return Value(value); } - static Value createDouble(double value) { return Value(value); } - static Value createTimestamp(const OpTime& value) { return Value(value); } - static Value createString(const string& value) { return Value(value); } - static Value createDocument(const Document& doc) { return Value(doc); } - static Value createArray(const vector<Value>& vec) { return Value(vec); } - static Value createDate(const long long value); - private: /** This is a "honeypot" to prevent unexpected implicit conversions to the accepted argument * types. bool is especially bad since without this it will accept any pointer. |