Skip to content

Commit 244acb2

Browse files
committed
remove redefinitions of Restart()
1 parent 5ac6753 commit 244acb2

14 files changed

+1
-51
lines changed

hardware/BleBox.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,6 @@ void BleBox::SetSettings(const int pollIntervalSec)
664664
m_PollInterval = pollIntervalSec;
665665
}
666666

667-
void BleBox::Restart()
668-
{
669-
StopHardware();
670-
StartHardware();
671-
}
672-
673667
void BleBox::SendSwitch(const int NodeID, const uint8_t ChildID, const int BatteryLevel, const bool bOn, const double Level, const std::string &defaultname)
674668
{ //TODO - remove this method, when in DomoticzHardware bug is fix (15 instead 16)
675669
double rlevel = (15.0 / 100.0)*Level;

hardware/BleBox.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class BleBox : public CDomoticzHardwareBase
2323
void RemoveNode(const int id);
2424
void RemoveAllNodes();
2525
void SetSettings(const int pollIntervalsec);
26-
void Restart();
2726
void UpdateFirmware();
2827
Json::Value GetApiDeviceState(const std::string &IPAddress);
2928
bool DoesNodeExists(const Json::Value &root, const std::string &node);

hardware/Kodi.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,12 +1001,6 @@ void CKodi::SetSettings(const int PollIntervalsec, const int PingTimeoutms)
10011001
m_iPingTimeoutms = PingTimeoutms;
10021002
}
10031003

1004-
void CKodi::Restart()
1005-
{
1006-
StopHardware();
1007-
StartHardware();
1008-
}
1009-
10101004
bool CKodi::WriteToHardware(const char *pdata, const unsigned char length)
10111005
{
10121006
const tRBUF *pSen = reinterpret_cast<const tRBUF*>(pdata);

hardware/Kodi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ class CKodi : public CDomoticzHardwareBase
130130
void RemoveNode(const int ID);
131131
void RemoveAllNodes();
132132
void SetSettings(const int PollIntervalsec, const int PingTimeoutms);
133-
void Restart();
134133
void SendCommand(const int ID, const std::string &command);
135134
bool SetPlaylist(const int ID, const std::string &playlist);
136135
bool SetExecuteCommand(const int ID, const std::string &command);

hardware/LogitechMediaServer.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,6 @@ void CLogitechMediaServer::SetSettings(const int PollIntervalsec, const int Ping
509509
m_iPingTimeoutms = PingTimeoutms;
510510
}
511511

512-
void CLogitechMediaServer::Restart()
513-
{
514-
StopHardware();
515-
StartHardware();
516-
}
517-
518512
bool CLogitechMediaServer::WriteToHardware(const char *pdata, const unsigned char length)
519513
{
520514
const tRBUF *pSen = reinterpret_cast<const tRBUF*>(pdata);

hardware/LogitechMediaServer.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class CLogitechMediaServer : public CDomoticzHardwareBase
3939
void RemoveNode(const int ID);
4040
void RemoveAllNodes();
4141
void SetSettings(const int PollIntervalsec, const int PingTimeoutms);
42-
void Restart();
4342
bool SendCommand(const int ID, const std::string &command, const std::string &param = "");
4443
std::vector<LMSPlaylistNode> GetPlaylists();
4544
void SendText(const std::string &playerIP, const std::string &subject, const std::string &text, const int duration);

hardware/PanasonicTV.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -852,12 +852,6 @@ void CPanasonic::SetSettings(const int PollIntervalsec, const int PingTimeoutms)
852852
m_iPingTimeoutms = PingTimeoutms;
853853
}
854854

855-
void CPanasonic::Restart()
856-
{
857-
StopHardware();
858-
StartHardware();
859-
}
860-
861855
bool CPanasonic::WriteToHardware(const char *pdata, const unsigned char length)
862856
{
863857
const tRBUF *pSen = reinterpret_cast<const tRBUF*>(pdata);

hardware/PanasonicTV.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class CPanasonic : public CDomoticzHardwareBase
2121
void RemoveNode(const int ID);
2222
void RemoveAllNodes();
2323
void SetSettings(const int PollIntervalsec, const int PingTimeoutms);
24-
void Restart();
2524
void SendCommand(const int ID, const std::string &command);
2625
bool SetExecuteCommand(const int ID, const std::string &command);
2726
private:

hardware/Pinger.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,6 @@ void CPinger::SetSettings(const int PollIntervalsec, const int PingTimeoutms)
433433
m_iPingTimeoutms = PingTimeoutms;
434434
}
435435

436-
void CPinger::Restart()
437-
{
438-
StopHardware();
439-
StartHardware();
440-
}
441-
442436
//Webserver helpers
443437
namespace http {
444438
namespace server {

hardware/Pinger.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class CPinger : public CDomoticzHardwareBase
2323
void RemoveNode(const int ID);
2424
void RemoveAllNodes();
2525
void SetSettings(const int PollIntervalsec, const int PingTimeoutms);
26-
void Restart();
2726
private:
2827
void Do_Work();
2928
bool StartHardware() override;

0 commit comments

Comments
 (0)