diff options
| author | Michael Biebl <biebl@debian.org> | 2018-09-23 10:10:27 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-09-23 10:10:27 +0200 |
| commit | e126f3e804c35480c4f075777430419d6ece23da (patch) | |
| tree | 5d5821ebcda8cd6ac34d2483bb3354910e508930 /shared/c-list/src/c-list.h | |
| parent | c240974325c552cad177c457d6ff04e381fd77a3 (diff) | |
New upstream version 1.12.4 upstream/1.12.4
Diffstat (limited to 'shared/c-list/src/c-list.h')
| -rw-r--r-- | shared/c-list/src/c-list.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/shared/c-list/src/c-list.h b/shared/c-list/src/c-list.h index 3d44e330..ff434d8d 100644 --- a/shared/c-list/src/c-list.h +++ b/shared/c-list/src/c-list.h @@ -367,25 +367,6 @@ static inline CList *c_list_last(CList *list) { _safe = c_list_entry((_safe)->_m.next, __typeof__(*_iter), _m)) \ /** - * c_list_flush() - flush all entries from a list - * @list: list to flush - * - * This unlinks all entries from the given list @list and reinitializes their - * link-nodes via C_LIST_INIT(). - * - * Note that the entries are not modified in any other way, nor is their memory - * released. This function just unlinks them and resets all the list nodes. It - * is particularly useful with temporary lists on the stack in combination with - * the GCC-extension __attribute__((__cleanup__(arg))). - */ -static inline void c_list_flush(CList *list) { - CList *iter, *safe; - - c_list_for_each_safe_unlink(iter, safe, list) - /* empty */ ; -} - -/** * c_list_length() - return number of linked entries, excluding the head * @list: list to operate on * |