Dictionary#Clear(): remove unused bool overrideFrozen

This commit is contained in:
Alexander A. Klimov 2023-02-08 11:26:44 +01:00
parent 270c6392d4
commit cd78da13d3
2 changed files with 3 additions and 5 deletions

View File

@ -175,14 +175,12 @@ void Dictionary::Remove(const String& key)
/**
* Removes all dictionary items.
*
* @param overrideFrozen Whether to allow modifying frozen dictionaries.
*/
void Dictionary::Clear(bool overrideFrozen)
void Dictionary::Clear()
{
ObjectLock olock(this);
if (m_Frozen && !overrideFrozen)
if (m_Frozen)
BOOST_THROW_EXCEPTION(std::invalid_argument("Dictionary must not be modified."));
m_Data.clear();

View File

@ -53,7 +53,7 @@ public:
void Remove(Iterator it);
void Clear(bool overrideFrozen = false);
void Clear();
void CopyTo(const Dictionary::Ptr& dest) const;
Dictionary::Ptr ShallowClone() const;