]> git.kaiwu.me - njs.git/commitdiff
Obsolete function removal.
authorIgor Sysoev <igor@sysoev.ru>
Thu, 11 Feb 2016 14:44:53 +0000 (17:44 +0300)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 11 Feb 2016 14:44:53 +0000 (17:44 +0300)
njs/njs_object.c
njs/njs_object.h

index 6d4f1f67b38c54600cade76ab56adcf16d7dc4a1..48be012f86589c7e7554ffeb6cef698e5322b23e 100644 (file)
@@ -169,21 +169,6 @@ njs_object_prop_alloc(njs_vm_t *vm, const njs_value_t *name)
 }
 
 
-nxt_noinline njs_ret_t
-njs_object_method(njs_vm_t *vm, njs_param_t *param, nxt_lvlhsh_query_t *lhq)
-{
-    njs_object_prop_t  *prop;
-
-    prop = njs_object_property(vm, param->this->data.u.object, lhq);
-
-    if (nxt_fast_path(prop != NULL)) {
-        return njs_function_apply(vm, &prop->value, param);
-    }
-
-    return NXT_ERROR;
-}
-
-
 nxt_noinline njs_object_prop_t *
 njs_object_property(njs_vm_t *vm, njs_object_t *object, nxt_lvlhsh_query_t *lhq)
 {
index ce18d0149c234885ee7b8f0f2c4044fde1bfedce..92035c0037d343fe5a260e1094104dc08ccc6ed4 100644 (file)
@@ -46,8 +46,6 @@ struct njs_object_init_s {
 njs_object_t *njs_object_alloc(njs_vm_t *vm);
 njs_object_t *njs_object_value_alloc(njs_vm_t *vm, const njs_value_t *value,
     nxt_uint_t type);
-njs_ret_t njs_object_method(njs_vm_t *vm, njs_param_t *param,
-    nxt_lvlhsh_query_t *lhq);
 njs_object_prop_t *njs_object_property(njs_vm_t *vm, njs_object_t *obj,
     nxt_lvlhsh_query_t *lhq);
 nxt_int_t njs_object_hash_create(njs_vm_t *vm, nxt_lvlhsh_t *hash,