Removed unused EventManager class member from DebugServer and derived classes

This commit is contained in:
Nav
2022-03-20 17:55:15 +00:00
parent 3f70e84f68
commit 28396d9d80
4 changed files with 5 additions and 13 deletions

View File

@@ -51,7 +51,6 @@ namespace Bloom
"avr-gdb-rsp",
[this] () -> std::unique_ptr<DebugServers::DebugServer> {
return std::make_unique<DebugServers::Gdb::AvrGdbRsp>(
this->eventManager,
this->projectConfig.value(),
this->environmentConfig.value(),
this->debugServerConfig.value()

View File

@@ -29,15 +29,14 @@ namespace Bloom::DebugServers
{
public:
explicit DebugServer(
EventManager& eventManager,
const ProjectConfig& projectConfig,
const EnvironmentConfig& environmentConfig,
const DebugServerConfig& debugServerConfig
)
: eventManager(eventManager)
, projectConfig(projectConfig)
: projectConfig(projectConfig)
, environmentConfig(environmentConfig)
, debugServerConfig(debugServerConfig) {};
, debugServerConfig(debugServerConfig)
{};
/**
* Entry point for the DebugServer. This must called from a dedicated thread.
@@ -47,10 +46,6 @@ namespace Bloom::DebugServers
virtual std::string getName() const = 0;
protected:
/**
* Application-wide instance to EventManager
*/
EventManager& eventManager;
EventListenerPointer eventListener = std::make_shared<EventListener>("DebugServerEventListener");
ProjectConfig projectConfig;

View File

@@ -27,11 +27,10 @@ namespace Bloom::DebugServers::Gdb
{
public:
explicit AvrGdbRsp(
EventManager& eventManager,
const ProjectConfig& projectConfig,
const EnvironmentConfig& environmentConfig,
const DebugServerConfig& debugServerConfig
): GdbRspDebugServer(eventManager, projectConfig, environmentConfig, debugServerConfig) {};
): GdbRspDebugServer(projectConfig, environmentConfig, debugServerConfig) {};
std::string getName() const override {
return "AVR GDB Remote Serial Protocol Debug Server";

View File

@@ -42,11 +42,10 @@ namespace Bloom::DebugServers::Gdb
{
public:
explicit GdbRspDebugServer(
EventManager& eventManager,
const ProjectConfig& projectConfig,
const EnvironmentConfig& environmentConfig,
const DebugServerConfig& debugServerConfig
): DebugServer(eventManager, projectConfig, environmentConfig, debugServerConfig) {};
): DebugServer(projectConfig, environmentConfig, debugServerConfig) {};
std::string getName() const override {
return "GDB Remote Serial Protocol DebugServer";