Skip to content

Commit 8819958

Browse files
yashLadhatargos
authored andcommitted
inspector: remove redundant method for connection check
PR-URL: #37986 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 9df3fc5 commit 8819958

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/inspector_agent.cc

-7
Original file line numberDiff line numberDiff line change
@@ -900,13 +900,6 @@ void Agent::ContextCreated(Local<Context> context, const ContextInfo& info) {
900900
client_->contextCreated(context, info);
901901
}
902902

903-
bool Agent::WillWaitForConnect() {
904-
if (debug_options_.wait_for_connect()) return true;
905-
if (parent_handle_)
906-
return parent_handle_->WaitForConnect();
907-
return false;
908-
}
909-
910903
bool Agent::IsActive() {
911904
if (client_ == nullptr)
912905
return false;

src/inspector_agent.h

-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ class Agent {
5959
// --inspect command line flag) or if inspector JS API had been used.
6060
bool IsActive();
6161

62-
// Option is set to wait for session connection
63-
bool WillWaitForConnect();
6462
// Blocks till frontend connects and sends "runIfWaitingForDebugger"
6563
void WaitForConnect();
6664
// Blocks till all the sessions with "WaitForDisconnectOnShutdown" disconnect

0 commit comments

Comments
 (0)