aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-01-22 16:39:06 -0800
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:23:28 +0300
commitbacb23ed1a80740b34e3a265a29be1d86dd72ff0 (patch)
tree6920676f22b38c1a747b04904fe18e244d9258a9
parent09bfd969bd413be3dbcdd5dbf89c17211efed85b (diff)
Kill eval_global_method: it's replaced with more primitives
-rwxr-xr-xsrc/embind/emval.js7
-rw-r--r--system/include/emscripten/val.h5
2 files changed, 0 insertions, 12 deletions
diff --git a/src/embind/emval.js b/src/embind/emval.js
index 84ed1956..56c307bf 100755
--- a/src/embind/emval.js
+++ b/src/embind/emval.js
@@ -78,13 +78,6 @@ function __emval_get_property(handle, key) {
return __emval_register(_emval_handle_array[handle].value[_emval_handle_array[key].value]);
}
-function __emval_eval_global_method(handle, objectName, methodName) {
- var objectNameStr = Pointer_stringify(objectName);
- var methodNameStr = Pointer_stringify(methodName);
- var result = eval.call(null, objectNameStr)[methodNameStr](_emval_handle_array[handle].value);
- return __emval_register(result);
-}
-
function __emval_set_property(handle, key, value) {
_emval_handle_array[handle].value[_emval_handle_array[key].value] = _emval_handle_array[value].value;
}
diff --git a/system/include/emscripten/val.h b/system/include/emscripten/val.h
index d6b1ac04..3d0a3e60 100644
--- a/system/include/emscripten/val.h
+++ b/system/include/emscripten/val.h
@@ -21,7 +21,6 @@ namespace emscripten {
EM_VAL _emval_get_global(const char* name);
EM_VAL _emval_get_property(EM_VAL object, EM_VAL key);
- EM_VAL _emval_eval_global_method(EM_VAL object, const char* objectName, const char* methodName);
void _emval_set_property(EM_VAL object, EM_VAL key, EM_VAL value);
void _emval_as(EM_VAL value, TYPEID returnType);
EM_VAL _emval_call(
@@ -109,10 +108,6 @@ namespace emscripten {
return val(internal::_emval_get_property(handle, val(key).handle));
}
- val eval_global_method(const char* objectName, const char* methodName) const {
- return val(internal::_emval_eval_global_method(handle, objectName, methodName));
- }
-
template<typename T>
void set(const T& key, val v) {
internal::_emval_set_property(handle, val(key).handle, v.handle);