removeElement removes an element from the list and updates the index (internal implementation)
(element *list.Element[task.Task])
| 94 | |
| 95 | // removeElement removes an element from the list and updates the index (internal implementation) |
| 96 | func (ts *TaskStorage) removeElement(element *list.Element[task.Task]) task.Task { |
| 97 | t := ts.items.Remove(element) |
| 98 | delete(ts.idIndex, t.GetId()) |
| 99 | return t |
| 100 | } |
| 101 | |
| 102 | // Public methods (with locking) |
| 103 |
no test coverage detected