Skip to content

Commit dc09286

Browse files
Jungku LeeUlisesGascon
Jungku Lee
authored andcommitted
src: remove unused function GetName() in node_perf
PR-URL: #49244 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
1 parent fac56db commit dc09286

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/node_perf.cc

-12
Original file line numberDiff line numberDiff line change
@@ -236,18 +236,6 @@ static void RemoveGarbageCollectionTracking(
236236
GarbageCollectionCleanupHook(env);
237237
}
238238

239-
// Gets the name of a function
240-
inline Local<Value> GetName(Local<Function> fn) {
241-
Local<Value> val = fn->GetDebugName();
242-
if (val.IsEmpty() || val->IsUndefined()) {
243-
Local<Value> boundFunction = fn->GetBoundFunction();
244-
if (!boundFunction.IsEmpty() && !boundFunction->IsUndefined()) {
245-
val = GetName(boundFunction.As<Function>());
246-
}
247-
}
248-
return val;
249-
}
250-
251239
// Notify a custom PerformanceEntry to observers
252240
void Notify(const FunctionCallbackInfo<Value>& args) {
253241
Environment* env = Environment::GetCurrent(args);

0 commit comments

Comments
 (0)