| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected