MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / remove

Method remove

Kernel/include/list.h:166–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 }
165
166 void remove(T obj){
167 if (obj->next) obj->next->prev = obj->prev;
168 if (obj->prev) obj->prev->next = obj->next;
169 if (front == obj) front = obj->next;
170 if (back == obj) back = obj->prev;
171
172 --num;
173
174 if(!num) front = back = nullptr;
175 }
176
177 T get_front()
178 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected