Remove unnecessary parameter

This commit is contained in:
Jean Flach 2018-11-12 17:45:32 +01:00 committed by Michael Friedrich
parent 5f64d809d7
commit c825a3f4b5
2 changed files with 3 additions and 4 deletions

View File

@ -510,7 +510,7 @@ void RedisWriter::CreateConfigUpdate(const ConfigObject::Ptr& object, const Stri
MakeTypeChecksums(object, propertiesBlacklist, checkSums);
/* Send all object attributes to Redis, no extra checksums involved here. */
auto tempAttrs = (UpdateObjectAttrs(m_PrefixConfigObject, object, FAConfig, typeName));
auto tempAttrs = (UpdateObjectAttrs(object, FAConfig, typeName));
attributes.insert(attributes.end(), std::begin(tempAttrs), std::end(tempAttrs));
/* Custom var checksums. */
@ -645,7 +645,7 @@ void RedisWriter::SendStatusUpdate(const ConfigObject::Ptr& object)
}
std::vector<String>
RedisWriter::UpdateObjectAttrs(const String& keyPrefix, const ConfigObject::Ptr& object, int fieldType,
RedisWriter::UpdateObjectAttrs(const ConfigObject::Ptr& object, int fieldType,
const String& typeNameOverride)
{
Type::Ptr type = object->GetReflectionType();

View File

@ -72,8 +72,7 @@ private:
std::vector<String>& customVars, std::vector<String>& checksums, bool runtimeUpdate);
void SendConfigDelete(const ConfigObject::Ptr& object);
void SendStatusUpdate(const ConfigObject::Ptr& object);
std::vector<String> UpdateObjectAttrs(const String& keyPrefix, const ConfigObject::Ptr& object, int fieldType,
const String& typeNameOverride);
std::vector<String> UpdateObjectAttrs(const ConfigObject::Ptr& object, int fieldType, const String& typeNameOverride);
/* Stats */
Dictionary::Ptr GetStats();