diff options
author | cjihrig <cjihrig@gmail.com> | 2019-06-03 05:02:44 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-06-05 06:27:09 +0300 |
commit | 2c76874e4c7831d306335d75eca80c69e73c5603 (patch) | |
tree | 840b484f0ffcb9fda899e22ee098fb88c31d21ae /src/inspector | |
parent | cb68c04ce1bc4534b2d92bc7319c6ff6dda0180d (diff) |
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>
Diffstat (limited to 'src/inspector')
-rw-r--r-- | src/inspector/runtime_agent.cc | 4 | ||||
-rw-r--r-- | src/inspector/runtime_agent.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/inspector/runtime_agent.cc b/src/inspector/runtime_agent.cc index 4056140e703..037a77dbb9d 100644 --- a/src/inspector/runtime_agent.cc +++ b/src/inspector/runtime_agent.cc @@ -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()); diff --git a/src/inspector/runtime_agent.h b/src/inspector/runtime_agent.h index 63fc2a897ca..4c249f8e82f 100644 --- a/src/inspector/runtime_agent.h +++ b/src/inspector/runtime_agent.h @@ -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 |