Remove unused code in the IDO classes

fixes #12434
This commit is contained in:
Gunnar Beutner 2016-08-14 22:20:31 +02:00
parent 39ded04e1a
commit 980ba42825
11 changed files with 4 additions and 33 deletions

View File

@ -46,10 +46,5 @@ Dictionary::Ptr CommandDbObject::GetConfigFields(void) const
Dictionary::Ptr CommandDbObject::GetStatusFields(void) const
{
return Empty;
}
void CommandDbObject::OnConfigUpdate(void)
{
return;
return Dictionary::Ptr();
}

View File

@ -40,9 +40,6 @@ public:
virtual Dictionary::Ptr GetConfigFields(void) const override;
virtual Dictionary::Ptr GetStatusFields(void) const override;
protected:
virtual void OnConfigUpdate(void) override;
};
}

View File

@ -269,11 +269,6 @@ double DbObject::GetLastStatusUpdate(void) const
return m_LastStatusUpdate;
}
bool DbObject::IsStatusAttribute(const String&) const
{
return false;
}
void DbObject::OnConfigUpdate(void)
{
/* Default handler does nothing. */

View File

@ -92,8 +92,6 @@ public:
protected:
DbObject(const intrusive_ptr<DbType>& type, const String& name1, const String& name2);
virtual bool IsStatusAttribute(const String& attribute) const;
virtual void OnConfigUpdate(void);
virtual void OnStatusUpdate(void);

View File

@ -48,5 +48,5 @@ Dictionary::Ptr HostGroupDbObject::GetConfigFields(void) const
Dictionary::Ptr HostGroupDbObject::GetStatusFields(void) const
{
return Empty;
return Dictionary::Ptr();
}

View File

@ -171,11 +171,6 @@ Dictionary::Ptr ServiceDbObject::GetStatusFields(void) const
return fields;
}
bool ServiceDbObject::IsStatusAttribute(const String& attribute) const
{
return (attribute == "last_result");
}
void ServiceDbObject::OnConfigUpdate(void)
{
Service::Ptr service = static_pointer_cast<Service>(GetObject());

View File

@ -45,8 +45,6 @@ public:
virtual Dictionary::Ptr GetStatusFields(void) const override;
protected:
virtual bool IsStatusAttribute(const String& attribute) const override;
virtual void OnConfigUpdate(void) override;
virtual void OnStatusUpdate(void) override;
};

View File

@ -47,5 +47,5 @@ Dictionary::Ptr ServiceGroupDbObject::GetConfigFields(void) const
Dictionary::Ptr ServiceGroupDbObject::GetStatusFields(void) const
{
return Empty;
return Dictionary::Ptr();
}

View File

@ -140,8 +140,3 @@ void UserDbObject::OnConfigUpdate(void)
}
}
}
bool UserDbObject::IsStatusAttribute(const String& attribute) const
{
return (attribute == "last_notification");
}

View File

@ -42,8 +42,6 @@ public:
virtual Dictionary::Ptr GetStatusFields(void) const override;
virtual void OnConfigUpdate(void) override;
virtual bool IsStatusAttribute(const String& attribute) const override;
};
}

View File

@ -45,5 +45,5 @@ Dictionary::Ptr UserGroupDbObject::GetConfigFields(void) const
Dictionary::Ptr UserGroupDbObject::GetStatusFields(void) const
{
return Empty;
return Dictionary::Ptr();
}