Skip to content

Commit a696f10

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 4711f57 commit a696f10

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
@@ -898,13 +898,6 @@ void Agent::ContextCreated(Local<Context> context, const ContextInfo& info) {
898898
client_->contextCreated(context, info);
899899
}
900900

901-
bool Agent::WillWaitForConnect() {
902-
if (debug_options_.wait_for_connect()) return true;
903-
if (parent_handle_)
904-
return parent_handle_->WaitForConnect();
905-
return false;
906-
}
907-
908901
bool Agent::IsActive() {
909902
if (client_ == nullptr)
910903
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)