Skip to content

Commit

Permalink
Update KeyValues3Context & its allocation lifecycle (alliedmodders#289)
Browse files Browse the repository at this point in the history
Co-authored-by: GAMMACASE <[email protected]>
Co-authored-by: Nyano <[email protected]>
  • Loading branch information
3 people authored Jan 1, 2025
1 parent 769c1ef commit f3b44f2
Show file tree
Hide file tree
Showing 4 changed files with 1,500 additions and 853 deletions.
16 changes: 0 additions & 16 deletions entity2/entitykeyvalues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,22 +285,6 @@ bool CEntityKeyValues::IsEmpty() const
return false;
}

bool CEntityKeyValues::ValuesHasBadNames() const
{
if ( !m_pAllocator )
return false;

return m_pValues->TableHasBadNames();
}

bool CEntityKeyValues::AttributesHasBadNames() const
{
if ( !m_pAllocator )
return false;

return m_pAttributes->TableHasBadNames();
}

void CEntityKeyValues::ReleaseAllComplexKeys()
{
EntityComplexKeyListElem_t* pListElem = m_pComplexKeys;
Expand Down
3 changes: 0 additions & 3 deletions public/entity2/entitykeyvalues.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ class CEntityKeyValues
void RemoveAllKeys();

bool IsEmpty() const;

bool ValuesHasBadNames() const;
bool AttributesHasBadNames() const;

bool HasValue( const EntityKeyId_t &id ) const { bool bIsAttribute; return ( GetKeyValue( id, &bIsAttribute ) && !bIsAttribute ); }
bool HasAttribute( const EntityKeyId_t &id ) const { bool bIsAttribute; return ( GetKeyValue( id, &bIsAttribute ) && bIsAttribute ); }
Expand Down
Loading

0 comments on commit f3b44f2

Please sign in to comment.