Revert D9117507: [flipper] Pass SonarState into SonarWebSocketImpl

Differential Revision:
D9117507

Original commit changeset: 24eeb1f80109

fbshipit-source-id: 9668d3880bc1048c542d78c7a522c6ed1ecd4037
This commit is contained in:
Daniel Abramowitz
2018-08-03 08:18:16 -07:00
committed by Facebook Github Bot
parent 0e4957b856
commit 7fc7061fca
5 changed files with 21 additions and 25 deletions

View File

@@ -10,7 +10,6 @@
#include <Sonar/SonarInitConfig.h>
#include <Sonar/SonarWebSocket.h>
#include <Sonar/SonarState.h>
#include <folly/Executor.h>
#include <folly/io/async/EventBase.h>
#include <rsocket/RSocket.h>
@@ -27,7 +26,7 @@ class SonarWebSocketImpl : public SonarWebSocket {
friend Responder;
public:
SonarWebSocketImpl(SonarInitConfig config, std::shared_ptr<SonarState> state);
SonarWebSocketImpl(SonarInitConfig config);
~SonarWebSocketImpl();
@@ -47,7 +46,6 @@ class SonarWebSocketImpl : public SonarWebSocket {
bool isOpen_ = false;
Callbacks* callbacks_;
DeviceData deviceData_;
std::shared_ptr<SonarState> sonarState_;
folly::EventBase* sonarEventBase_;
folly::EventBase* connectionEventBase_;