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 d81c67b

Browse filesBrowse files
cjihrigBridgeAR
authored andcommitted
src: fix unused private field warning
PR-URL: #28036 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 7165254 commit d81c67b
Copy full SHA for d81c67b

File tree

Expand file treeCollapse file tree

3 files changed

+4
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-5
lines changed
Open diff view settings
Collapse file

‎src/inspector/runtime_agent.cc‎

Copy file name to clipboardExpand all lines: src/inspector/runtime_agent.cc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ namespace node {
77
namespace inspector {
88
namespace protocol {
99

10-
RuntimeAgent::RuntimeAgent(Environment* env)
11-
: notify_when_waiting_for_disconnect_(false), env_(env) {}
10+
RuntimeAgent::RuntimeAgent()
11+
: notify_when_waiting_for_disconnect_(false) {}
1212

1313
void RuntimeAgent::Wire(UberDispatcher* dispatcher) {
1414
frontend_ = std::make_unique<NodeRuntime::Frontend>(dispatcher->channel());
Collapse file

‎src/inspector/runtime_agent.h‎

Copy file name to clipboardExpand all lines: src/inspector/runtime_agent.h
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace protocol {
1212

1313
class RuntimeAgent : public NodeRuntime::Backend {
1414
public:
15-
explicit RuntimeAgent(Environment* env);
15+
RuntimeAgent();
1616

1717
void Wire(UberDispatcher* dispatcher);
1818

@@ -23,7 +23,6 @@ class RuntimeAgent : public NodeRuntime::Backend {
2323
private:
2424
std::shared_ptr<NodeRuntime::Frontend> frontend_;
2525
bool notify_when_waiting_for_disconnect_;
26-
Environment* env_;
2726
};
2827
} // namespace protocol
2928
} // namespace inspector
Collapse file

‎src/inspector_agent.cc‎

Copy file name to clipboardExpand all lines: src/inspector_agent.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
239239
tracing_agent_->Wire(node_dispatcher_.get());
240240
worker_agent_ = std::make_unique<protocol::WorkerAgent>(worker_manager);
241241
worker_agent_->Wire(node_dispatcher_.get());
242-
runtime_agent_ = std::make_unique<protocol::RuntimeAgent>(env);
242+
runtime_agent_ = std::make_unique<protocol::RuntimeAgent>();
243243
runtime_agent_->Wire(node_dispatcher_.get());
244244
}
245245

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.