From df883b8cf2707f49c2ad7fa81abb5d79407ce2f7 Mon Sep 17 00:00:00 2001 From: Sergey Chernyshev Date: Thu, 25 Apr 2024 04:20:43 +0200 Subject: [PATCH] src: remove unused function `GetName()` in node_perf PR-URL: https://github.com/nodejs/node/pull/49244 Reviewed-By: Antoine du Hamel Reviewed-By: Deokjin Kim --- graal-nodejs/src/node_perf.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/graal-nodejs/src/node_perf.cc b/graal-nodejs/src/node_perf.cc index d816a0a4db4..c16543acba4 100644 --- a/graal-nodejs/src/node_perf.cc +++ b/graal-nodejs/src/node_perf.cc @@ -215,18 +215,6 @@ static void RemoveGarbageCollectionTracking( GarbageCollectionCleanupHook(env); } -// Gets the name of a function -inline Local GetName(Local fn) { - Local val = fn->GetDebugName(); - if (val.IsEmpty() || val->IsUndefined()) { - Local boundFunction = fn->GetBoundFunction(); - if (!boundFunction.IsEmpty() && !boundFunction->IsUndefined()) { - val = GetName(boundFunction.As()); - } - } - return val; -} - // Notify a custom PerformanceEntry to observers void Notify(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args);