Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a696f10

Browse filesBrowse files
yashLadhatargos
authored andcommitted
inspector: remove redundant method for connection check
PR-URL: #37986 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 4711f57 commit a696f10
Copy full SHA for a696f10

File tree

Expand file treeCollapse file tree

2 files changed

+0
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-9
lines changed
Open diff view settings
Collapse file

‎src/inspector_agent.cc‎

Copy file name to clipboardExpand all lines: src/inspector_agent.cc
-7Lines changed: 0 additions & 7 deletions
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;
Collapse file

‎src/inspector_agent.h‎

Copy file name to clipboardExpand all lines: src/inspector_agent.h
-2Lines changed: 0 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.