From faf480acdcce94591b0a56ff940d266216ba93ea Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Tue, 5 Aug 2025 11:25:38 +0300 Subject: [PATCH] Remove obsoleted asserts in CUtlLinkedList --- public/tier1/utllinkedlist.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/public/tier1/utllinkedlist.h b/public/tier1/utllinkedlist.h index a2ccbd6e..da887326 100644 --- a/public/tier1/utllinkedlist.h +++ b/public/tier1/utllinkedlist.h @@ -420,8 +420,6 @@ I CUtlLinkedList::AllocInternal( bool multilist ) I elem; if ( m_FirstFree == InvalidIndex() ) { - Assert( m_Memory.IsValidIterator( m_LastAlloc ) || m_ElementCount == 0 ); - typename M::Iterator_t it = m_Memory.AddToTail(); // We can overflow before the utlmemory overflows, since S != I @@ -630,7 +628,6 @@ void CUtlLinkedList::RemoveAll() Assert( m_Head == InvalidIndex() ); Assert( m_Tail == InvalidIndex() ); Assert( m_FirstFree == InvalidIndex() ); - Assert( m_ElementCount == 0 ); return; }