diff options
Diffstat (limited to 'src/mongo/scripting/mozjs/valuereader.h')
-rw-r--r-- | src/mongo/scripting/mozjs/valuereader.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/scripting/mozjs/valuereader.h b/src/mongo/scripting/mozjs/valuereader.h index e96ede814f1..223600aa5e4 100644 --- a/src/mongo/scripting/mozjs/valuereader.h +++ b/src/mongo/scripting/mozjs/valuereader.h @@ -45,7 +45,7 @@ public: * Depth is used when readers are invoked from ObjectWrappers to avoid * reading out overly nested objects */ - ValueReader(JSContext* cx, JS::MutableHandleValue value, int depth = 0); + ValueReader(JSContext* cx, JS::MutableHandleValue value); void fromBSONElement(const BSONElement& elem, bool readOnly); void fromBSON(const BSONObj& obj, bool readOnly); @@ -55,7 +55,6 @@ public: private: JSContext* _context; JS::MutableHandleValue _value; - int _depth; }; } // namespace mozjs |