summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/jsstringwrapper.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-03 16:49:32 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-03 16:49:32 -0400
commit4ea097b36ec3d7e490c405ce66708db0d177fca6 (patch)
treead887d2172a13caea02210480cbd63ab59d0904d /src/mongo/scripting/mozjs/jsstringwrapper.cpp
parent6b87a77ced925398b7485abaf0fa36bafcccc52a (diff)
downloadmongo-4ea097b36ec3d7e490c405ce66708db0d177fca6.tar.gz
SERVER-23548 Remove VS2013 workarounds
Diffstat (limited to 'src/mongo/scripting/mozjs/jsstringwrapper.cpp')
-rw-r--r--src/mongo/scripting/mozjs/jsstringwrapper.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mongo/scripting/mozjs/jsstringwrapper.cpp b/src/mongo/scripting/mozjs/jsstringwrapper.cpp
index efc72041f85..2732c98607b 100644
--- a/src/mongo/scripting/mozjs/jsstringwrapper.cpp
+++ b/src/mongo/scripting/mozjs/jsstringwrapper.cpp
@@ -72,20 +72,6 @@ JSStringWrapper::JSStringWrapper(JSContext* cx, JSString* str) : _isSet(true) {
out[_length] = '\0';
}
-#if defined(_MSC_VER) && _MSC_VER < 1900
-JSStringWrapper::JSStringWrapper(JSStringWrapper&& other) {
- *this = std::move(other);
-}
-
-JSStringWrapper& JSStringWrapper::operator=(JSStringWrapper&& other) {
- _str = std::move(other._str);
- _length = other._length;
- std::memcpy(_buf, other._buf, sizeof(_buf));
- _isSet = other._isSet;
- return *this;
-}
-#endif
-
StringData JSStringWrapper::toStringData() const {
invariant(_isSet);
return StringData(_str ? _str.get() : _buf, _length);