summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authoragirbal <antoine@10gen.com>2011-05-30 10:05:22 -0700
committeragirbal <antoine@10gen.com>2011-05-30 10:25:29 -0700
commit21def6cf9438f77e54163c9109325d3f880fc6e6 (patch)
treea40fc2a3552dd875494b52728e9272befd58b3c3 /scripting
parent2fdd55792094f01922b44c5ec11789ddddc0a876 (diff)
downloadmongo-21def6cf9438f77e54163c9109325d3f880fc6e6.tar.gz
SERVER-3168: added length() and subtype(). Moved methods from SM layer to utils.js
Diffstat (limited to 'scripting')
-rw-r--r--scripting/sm_db.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/scripting/sm_db.cpp b/scripting/sm_db.cpp
index 202f076ff20..51b13bbed64 100644
--- a/scripting/sm_db.cpp
+++ b/scripting/sm_db.cpp
@@ -766,18 +766,6 @@ zzz
return *rval = c.toval( ret.c_str() );
}
- JSBool bindataLength(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) {
- Convertor c(cx);
- int len = (int)c.getNumber( obj, "len" );
- return *rval = c.toval((double) len);
- }
-
- JSBool bindataSubtype(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) {
- Convertor c(cx);
- int t = (int)c.getNumber( obj, "type" );
- return *rval = c.toval((double) t);
- }
-
void bindata_finalize( JSContext * cx , JSObject * obj ) {
Convertor c(cx);
void *holder = JS_GetPrivate( cx, obj );
@@ -798,8 +786,6 @@ zzz
{ "toString" , bindata_tostring , 0 , JSPROP_READONLY | JSPROP_PERMANENT, 0 } ,
{ "hex", bindataAsHex, 0, JSPROP_READONLY | JSPROP_PERMANENT, 0 } ,
{ "base64", bindataBase64, 0, JSPROP_READONLY | JSPROP_PERMANENT, 0 } ,
- { "length", bindataLength, 0, JSPROP_READONLY | JSPROP_PERMANENT, 0 } ,
- { "subtype", bindataSubtype, 0, JSPROP_READONLY | JSPROP_PERMANENT, 0 } ,
{ 0 }
};