chore: server/Config use default for deconstructors

This commit is contained in:
sithlord48 2025-05-01 11:33:58 -04:00 committed by Nick Bolton
parent f4264d71a1
commit edea3b0df1
2 changed files with 4 additions and 24 deletions

View file

@ -35,11 +35,6 @@ Config::Config(IEventQueue *events) : m_inputFilter(events), m_hasLockToScreenAc
// do nothing // do nothing
} }
Config::~Config()
{
// do nothing
}
bool Config::addScreen(const std::string &name) bool Config::addScreen(const std::string &name)
{ {
// alias name must not exist // alias name must not exist
@ -1368,11 +1363,6 @@ Config::CellEdge::CellEdge(const std::string &name, EDirection side, const Inter
init(name, side, interval); init(name, side, interval);
} }
Config::CellEdge::~CellEdge()
{
// do nothing
}
void Config::CellEdge::init(const std::string &name, EDirection side, const Interval &interval) void Config::CellEdge::init(const std::string &name, EDirection side, const Interval &interval)
{ {
assert(side != kNoDirection); assert(side != kNoDirection);
@ -1685,11 +1675,6 @@ ConfigReadContext::ConfigReadContext(std::istream &s, int32_t firstLine) : m_str
// do nothing // do nothing
} }
ConfigReadContext::~ConfigReadContext()
{
// do nothing
}
bool ConfigReadContext::readLine(std::string &line) bool ConfigReadContext::readLine(std::string &line)
{ {
++m_line; ++m_line;
@ -2101,11 +2086,6 @@ XConfigRead::XConfigRead(const ConfigReadContext &context, const char *errorFmt,
// do nothing // do nothing
} }
XConfigRead::~XConfigRead() throw()
{
// do nothing
}
std::string XConfigRead::getWhat() const throw() std::string XConfigRead::getWhat() const throw()
{ {
return format("XConfigRead", "read error: %{1}", m_error.c_str()); return format("XConfigRead", "read error: %{1}", m_error.c_str());

View file

@ -61,7 +61,7 @@ public:
CellEdge(EDirection side, float position); CellEdge(EDirection side, float position);
CellEdge(EDirection side, const Interval &); CellEdge(EDirection side, const Interval &);
CellEdge(const std::string &name, EDirection side, const Interval &); CellEdge(const std::string &name, EDirection side, const Interval &);
~CellEdge(); ~CellEdge() = default;
Interval getInterval() const; Interval getInterval() const;
void setName(const std::string &newName); void setName(const std::string &newName);
@ -200,7 +200,7 @@ public:
}; };
Config(IEventQueue *events); Config(IEventQueue *events);
virtual ~Config(); virtual ~Config() = default;
#ifdef TEST_ENV #ifdef TEST_ENV
Config() : m_inputFilter(nullptr) Config() : m_inputFilter(nullptr)
@ -502,7 +502,7 @@ public:
using ArgList = std::vector<std::string>; using ArgList = std::vector<std::string>;
ConfigReadContext(std::istream &, int32_t firstLine = 1); ConfigReadContext(std::istream &, int32_t firstLine = 1);
~ConfigReadContext(); ~ConfigReadContext() = default;
bool readLine(std::string &); bool readLine(std::string &);
uint32_t getLineNumber() const; uint32_t getLineNumber() const;
@ -549,7 +549,7 @@ class XConfigRead : public XBase
public: public:
XConfigRead(const ConfigReadContext &context, const std::string &); XConfigRead(const ConfigReadContext &context, const std::string &);
XConfigRead(const ConfigReadContext &context, const char *errorFmt, const std::string &arg); XConfigRead(const ConfigReadContext &context, const char *errorFmt, const std::string &arg);
~XConfigRead() throw() override; ~XConfigRead() throw() override = default;
protected: protected:
// XBase overrides // XBase overrides