Commit 7307a00
committed
Replace duplicated logic in list.h by new helpers
The traversal logic in list_pushback() and list_remove() is identical to
the logic already provided by list_pushback_node() and list_remove_node().
This change replaces the duplicated code with calls to these helpers,
reducing code duplication.1 parent 6da5488 commit 7307a00
1 file changed
+2
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 111 | + | |
118 | 112 | | |
119 | 113 | | |
120 | 114 | | |
| |||
157 | 151 | | |
158 | 152 | | |
159 | 153 | | |
160 | | - | |
161 | | - | |
162 | | - | |
| 154 | + | |
163 | 155 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 156 | | |
169 | 157 | | |
170 | 158 | | |
| |||
0 commit comments