]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/cull_list.cpp
Remove InspIRCd* parameters and fields
[user/henk/code/inspircd.git] / src / cull_list.cpp
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 /* $Core */
15
16 #include "inspircd.h"
17 #include "cull_list.h"
18
19 void CullList::Apply()
20 {
21         std::vector<classbase*> todel(list.begin(), list.end());
22         list.clear();
23         for(std::vector<classbase*>::iterator i = todel.begin(); i != todel.end(); i++)
24         {
25                 classbase* c = *i;
26                 c->cull();
27                 delete c;
28         }
29 }
30