Skip to content

Commit d81c67b

Browse files
cjihrigBridgeAR
authored andcommitted
src: fix unused private field warning
PR-URL: #28036 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 7165254 commit d81c67b

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/inspector/runtime_agent.cc

+2-2
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());

src/inspector/runtime_agent.h

+1-2
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

src/inspector_agent.cc

+1-1
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)