kernel/util: Privatize the deprecated DoublyLinkedList::Insert() variant.

Removing it outright would cause implicit conversions and then the other
variant being called, which would create invalid lists. So make it private
so that any attempts to use it will create errors at compile-time.
This commit is contained in:
Augustin Cavalier 2023-04-01 11:33:44 -04:00
parent ce08f03c61
commit 3d3b89c8cc

View File

@ -335,8 +335,6 @@ public:
inline void InsertBefore(Element* insertBefore, Element* element);
inline void InsertAfter(Element* insertAfter, Element* element);
inline void Insert(Element* element, bool back = true);
inline void Insert(Element* before, Element* element);
// TODO: Obsolete! Use InsertBefore() instead!
inline void Add(Element* element, bool back = true);
inline void Remove(Element* element);
@ -377,6 +375,10 @@ public:
inline ConstReverseIterator GetReverseIterator() const
{ return ConstReverseIterator(this); }
private:
inline void Insert(Element* before, Element* element);
// TODO: Obsolete! Use InsertBefore() instead!
private:
Element* fFirst;
Element* fLast;