Clean up unneeded code
parent
326995d810
commit
6159a74d41
|
@ -329,9 +329,6 @@ class Monitor : public std::enable_shared_from_this<Monitor> {
|
|||
bool healthy;
|
||||
std::string last_topic;
|
||||
std::string last_value;
|
||||
std::string last_active_topic;
|
||||
std::string last_active_value;
|
||||
std::string GetNoteText();
|
||||
void SetNoteSet(Event::StringSet ¬eSet);
|
||||
#ifdef WITH_GSOAP
|
||||
struct soap *soap = nullptr;
|
||||
|
@ -353,9 +350,6 @@ class Monitor : public std::enable_shared_from_this<Monitor> {
|
|||
bool isAlarmed() const { return alarmed; };
|
||||
void setAlarmed(bool p_alarmed) { alarmed = p_alarmed; };
|
||||
bool isHealthy() const { return healthy; };
|
||||
const std::string &lastTopic() const { return last_active_topic; };
|
||||
const std::string &lastValue() const { return last_active_value; };
|
||||
const std::string noteText() { return GetNoteText(); };
|
||||
void setNotes(Event::StringSet ¬eSet) { SetNoteSet(noteSet); };
|
||||
};
|
||||
|
||||
|
|
|
@ -202,8 +202,6 @@ void Monitor::ONVIF::WaitForMessage() {
|
|||
if (alarms.count(last_topic) == 0 )
|
||||
{
|
||||
alarms[last_topic] = last_value;
|
||||
last_active_topic = last_topic;
|
||||
last_active_value = last_value;
|
||||
if (!alarmed) {
|
||||
Info("Triggered Start Event on ONVIF");
|
||||
alarmed = true;
|
||||
|
@ -286,13 +284,6 @@ int SOAP_ENV__Fault(struct soap *soap, char *faultcode, char *faultstring, char
|
|||
}
|
||||
#endif
|
||||
|
||||
std::string Monitor::ONVIF::GetNoteText() {
|
||||
std::string note = "";
|
||||
#ifdef WITH_GSOAP
|
||||
note = last_active_topic + "/" + last_active_value;
|
||||
#endif
|
||||
return note;
|
||||
}
|
||||
void Monitor::ONVIF::SetNoteSet(Event::StringSet ¬eSet) {
|
||||
std::string note = "";
|
||||
#ifdef WITH_GSOAP
|
||||
|
|
Loading…
Reference in New Issue