From ce79d218a4134161af9701a462ef169c5e846bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 14 Jun 2024 17:37:47 +0200 Subject: [PATCH] core: remove duplicate search of pointer in hashtable for evaluation of "hdata_count" --- src/core/core-eval.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/core/core-eval.c b/src/core/core-eval.c index c653ab283..a0ce63628 100644 --- a/src/core/core-eval.c +++ b/src/core/core-eval.c @@ -1196,15 +1196,6 @@ eval_hdata_count (const char *text, struct t_eval_context *eval_context) } } - if (!pointer) - { - pointer = hashtable_get (eval_context->pointers, hdata_name); - if (!pointer) - goto end; - if (!hdata_check_pointer (hdata, NULL, pointer)) - goto end; - } - count = hdata_count (hdata, pointer); snprintf (str_count, sizeof (str_count), "%d", count); value = strdup (str_count);