mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
Dictionary#Clear(): remove unused bool overrideFrozen
This commit is contained in:
parent
270c6392d4
commit
cd78da13d3
@ -175,14 +175,12 @@ void Dictionary::Remove(const String& key)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all dictionary items.
|
* Removes all dictionary items.
|
||||||
*
|
|
||||||
* @param overrideFrozen Whether to allow modifying frozen dictionaries.
|
|
||||||
*/
|
*/
|
||||||
void Dictionary::Clear(bool overrideFrozen)
|
void Dictionary::Clear()
|
||||||
{
|
{
|
||||||
ObjectLock olock(this);
|
ObjectLock olock(this);
|
||||||
|
|
||||||
if (m_Frozen && !overrideFrozen)
|
if (m_Frozen)
|
||||||
BOOST_THROW_EXCEPTION(std::invalid_argument("Dictionary must not be modified."));
|
BOOST_THROW_EXCEPTION(std::invalid_argument("Dictionary must not be modified."));
|
||||||
|
|
||||||
m_Data.clear();
|
m_Data.clear();
|
||||||
|
@ -53,7 +53,7 @@ public:
|
|||||||
|
|
||||||
void Remove(Iterator it);
|
void Remove(Iterator it);
|
||||||
|
|
||||||
void Clear(bool overrideFrozen = false);
|
void Clear();
|
||||||
|
|
||||||
void CopyTo(const Dictionary::Ptr& dest) const;
|
void CopyTo(const Dictionary::Ptr& dest) const;
|
||||||
Dictionary::Ptr ShallowClone() const;
|
Dictionary::Ptr ShallowClone() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user