From 92b823b2edd294438975caf04e1fdf9bd7db58ee Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 11 Feb 2016 17:44:53 +0300 Subject: [PATCH] Obsolete function removal. --- njs/njs_object.c | 15 --------------- njs/njs_object.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/njs/njs_object.c b/njs/njs_object.c index 6d4f1f67..48be012f 100644 --- a/njs/njs_object.c +++ b/njs/njs_object.c @@ -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) { diff --git a/njs/njs_object.h b/njs/njs_object.h index ce18d014..92035c00 100644 --- a/njs/njs_object.h +++ b/njs/njs_object.h @@ -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, -- 2.47.3