mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Remove loop_over_queue (as an example for later removing loop_over_list)
This commit is contained in:
parent
a4e2cfa2be
commit
bf70dad395
3 changed files with 4 additions and 12 deletions
|
@ -240,10 +240,4 @@ protected:
|
|||
template<typename T>
|
||||
using PQueue = Queue<T*>;
|
||||
|
||||
// Macro to visit each queue element in turn.
|
||||
#define loop_over_queue(queue, iterator) \
|
||||
int iterator; \
|
||||
for ( iterator = (queue).front(); iterator != (queue).back(); \
|
||||
(queue).incr(iterator) )
|
||||
|
||||
#endif /* queue_h */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue