From 9a678dce8e82ff97975666924b8d9cd035757606 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 6 Dec 2019 11:24:33 +0100 Subject: [PATCH] Get rid of IcingaDB#CalculateCheckSumVars() refs #7691 --- lib/icingadb/icingadb-utility.cpp | 10 ---------- lib/icingadb/icingadb.hpp | 1 - 2 files changed, 11 deletions(-) diff --git a/lib/icingadb/icingadb-utility.cpp b/lib/icingadb/icingadb-utility.cpp index 1dc63c956..e2d916675 100644 --- a/lib/icingadb/icingadb-utility.cpp +++ b/lib/icingadb/icingadb-utility.cpp @@ -83,16 +83,6 @@ String IcingaDB::CalculateCheckSumProperties(const ConfigObject::Ptr& object, co static const std::set metadataWhitelist ({"package", "source_location", "templates"}); -String IcingaDB::CalculateCheckSumVars(const CustomVarObject::Ptr& object) -{ - Dictionary::Ptr vars = object->GetVars(); - - if (!vars) - return HashValue(Empty); - - return HashValue(vars); -} - /** * Prepare object's custom vars for being written to Redis * diff --git a/lib/icingadb/icingadb.hpp b/lib/icingadb/icingadb.hpp index 0930319bf..dd9518514 100644 --- a/lib/icingadb/icingadb.hpp +++ b/lib/icingadb/icingadb.hpp @@ -84,7 +84,6 @@ private: static String GetObjectIdentifier(const ConfigObject::Ptr& object); static String GetEnvironment(); static String CalculateCheckSumProperties(const ConfigObject::Ptr& object, const std::set& propertiesBlacklist); - static String CalculateCheckSumVars(const CustomVarObject::Ptr& object); static Dictionary::Ptr SerializeVars(const CustomVarObject::Ptr& object); static String HashValue(const Value& value);