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:
parent
ce08f03c61
commit
3d3b89c8cc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user