mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
src: fix unused private field warning
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
7165254f8b
commit
d81c67bd8f
3 files changed
+4
-5
No files matched your search
@@ -7,8 +7,8 @@ namespace node {
|
||||
namespace inspector {
|
||||
namespace protocol {
|
||||
|
||||
RuntimeAgent::RuntimeAgent(Environment* env)
|
||||
: notify_when_waiting_for_disconnect_(false), env_(env) {}
|
||||
RuntimeAgent::RuntimeAgent()
|
||||
: notify_when_waiting_for_disconnect_(false) {}
|
||||
|
||||
void RuntimeAgent::Wire(UberDispatcher* dispatcher) {
|
||||
frontend_ = std::make_unique<NodeRuntime::Frontend>(dispatcher->channel());
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace protocol {
|
||||
|
||||
class RuntimeAgent : public NodeRuntime::Backend {
|
||||
public:
|
||||
explicit RuntimeAgent(Environment* env);
|
||||
RuntimeAgent();
|
||||
|
||||
void Wire(UberDispatcher* dispatcher);
|
||||
|
||||
@@ -23,7 +23,6 @@ class RuntimeAgent : public NodeRuntime::Backend {
|
||||
private:
|
||||
std::shared_ptr<NodeRuntime::Frontend> frontend_;
|
||||
bool notify_when_waiting_for_disconnect_;
|
||||
Environment* env_;
|
||||
};
|
||||
} // namespace protocol
|
||||
} // namespace inspector
|
||||
|
||||
@@ -239,7 +239,7 @@ class ChannelImpl final : public v8_inspector::V8Inspector::Channel,
|
||||
tracing_agent_->Wire(node_dispatcher_.get());
|
||||
worker_agent_ = std::make_unique<protocol::WorkerAgent>(worker_manager);
|
||||
worker_agent_->Wire(node_dispatcher_.get());
|
||||
runtime_agent_ = std::make_unique<protocol::RuntimeAgent>(env);
|
||||
runtime_agent_ = std::make_unique<protocol::RuntimeAgent>();
|
||||
runtime_agent_->Wire(node_dispatcher_.get());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user