mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Remove deprecated IterCookie-based dictionary iteration
This commit is contained in:
parent
70e63d4749
commit
392c2f3810
3 changed files with 8 additions and 536 deletions
|
@ -95,37 +95,6 @@ public:
|
|||
*/
|
||||
void DrainModifications();
|
||||
|
||||
/**
|
||||
* Prepare the analyzer set to be iterated over.
|
||||
* @see Dictionary#InitForIteration
|
||||
* @return an iterator that may be used to loop over analyzers in the set.
|
||||
*/
|
||||
[[deprecated("Remove in v5.1. Use standard-library compatible iteration.")]] IterCookie*
|
||||
InitForIteration() const
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
return analyzer_map.InitForIteration();
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
/**
|
||||
* Get next entry in the analyzer set.
|
||||
* @see Dictionary#NextEntry
|
||||
* @param c a set iterator.
|
||||
* @return the next analyzer in the set or a null pointer if there is no
|
||||
* more left (in that case the cookie is also deleted).
|
||||
*/
|
||||
[[deprecated(
|
||||
"Remove in v5.1. Use standard-library compatible iteration.")]] file_analysis::Analyzer*
|
||||
NextEntry(IterCookie* c)
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
return analyzer_map.NextEntry(c);
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
// Iterator support
|
||||
using iterator = zeek::DictIterator;
|
||||
using const_iterator = const iterator;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue