Skip to content

Commit 066d9d4

Browse files
Jungku Leetargos
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 b011a49 commit 066d9d4

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
@@ -215,18 +215,6 @@ static void RemoveGarbageCollectionTracking(
215215
GarbageCollectionCleanupHook(env);
216216
}
217217

218-
// Gets the name of a function
219-
inline Local<Value> GetName(Local<Function> fn) {
220-
Local<Value> val = fn->GetDebugName();
221-
if (val.IsEmpty() || val->IsUndefined()) {
222-
Local<Value> boundFunction = fn->GetBoundFunction();
223-
if (!boundFunction.IsEmpty() && !boundFunction->IsUndefined()) {
224-
val = GetName(boundFunction.As<Function>());
225-
}
226-
}
227-
return val;
228-
}
229-
230218
// Notify a custom PerformanceEntry to observers
231219
void Notify(const FunctionCallbackInfo<Value>& args) {
232220
Environment* env = Environment::GetCurrent(args);

0 commit comments

Comments
 (0)