Commit 78e7b1f
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 78e7b1f
1 file changed
+3
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
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 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
| 154 | + | |
166 | 155 | | |
167 | | - | |
168 | 156 | | |
169 | 157 | | |
170 | | - | |
171 | 158 | | |
172 | 159 | | |
173 | 160 | | |
| |||
0 commit comments