Skip to content

Commit

Permalink
src: fix unused private field warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cjihrig committed Jun 3, 2019
1 parent 7e18c65 commit 241e3d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/inspector/runtime_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
3 changes: 1 addition & 2 deletions src/inspector/runtime_agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace protocol {

class RuntimeAgent : public NodeRuntime::Backend {
public:
explicit RuntimeAgent(Environment* env);
RuntimeAgent();

void Wire(UberDispatcher* dispatcher);

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 241e3d6

Please sign in to comment.