Skip to content

Commit

Permalink
inspector: remove redundant method for connection check
Browse files Browse the repository at this point in the history
PR-URL: #37986
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
yashLadha authored and targos committed Jun 11, 2021
1 parent fcc6a00 commit 8258799
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -900,13 +900,6 @@ void Agent::ContextCreated(Local<Context> context, const ContextInfo& info) {
client_->contextCreated(context, info);
}

bool Agent::WillWaitForConnect() {
if (debug_options_.wait_for_connect()) return true;
if (parent_handle_)
return parent_handle_->WaitForConnect();
return false;
}

bool Agent::IsActive() {
if (client_ == nullptr)
return false;
Expand Down
2 changes: 0 additions & 2 deletions src/inspector_agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ class Agent {
// --inspect command line flag) or if inspector JS API had been used.
bool IsActive();

// Option is set to wait for session connection
bool WillWaitForConnect();
// Blocks till frontend connects and sends "runIfWaitingForDebugger"
void WaitForConnect();
// Blocks till all the sessions with "WaitForDisconnectOnShutdown" disconnect
Expand Down

0 comments on commit 8258799

Please sign in to comment.