Archived
1
0
Fork 0

queue.c: remove queue_clear.

client code knows what objects is stored in the queue
and its only 3 lines to do a simple free() on the items.
This commit is contained in:
Henrik Hautakoski 2010-11-10 08:45:44 +01:00
parent 1f1e9f7764
commit 4a2665004e
4 changed files with 6 additions and 23 deletions

View file

@ -27,7 +27,7 @@ int main() {
assert(queue_isempty(q) == 0);
queue_clear(q);
while(queue_dequeue(q));
assert(queue_isempty(q));