From d331c64bbb839b50d83114f3d537b9e81476f780 Mon Sep 17 00:00:00 2001 From: Fletcher Dunn Date: Mon, 25 May 2026 14:59:59 -0700 Subject: [PATCH] ICE client refactor: Delete unused function GetCandidates (cherry picked from commit 9273c5bcc9a2cee46776b5c0fbf2c1a771621deb) --- .../steamnetworkingsockets_ice_client.cpp | 16 ---------------- .../steamnetworkingsockets_ice_client.h | 1 - 2 files changed, 17 deletions(-) diff --git a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp index 68c9da5..51d41c6 100644 --- a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp +++ b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.cpp @@ -1137,22 +1137,6 @@ SteamNetworkingIPAddr CSteamNetworkingICESession::GetSelectedDestination() return m_pSelectedCandidatePair->m_remoteCandidate.m_addr; } -bool CSteamNetworkingICESession::GetCandidates( CUtlVector< ICECandidate > *pOutVecCandidates ) -{ - SteamNetworkingGlobalLock::AssertHeldByCurrentThread(); - - if ( pOutVecCandidates == nullptr ) - return false; - - pOutVecCandidates->RemoveAll(); - if ( m_bInterfaceListStale ) - return false; - - pOutVecCandidates->EnsureCapacity( len( m_vecCandidates ) ); - pOutVecCandidates->AddMultipleToTail( len( m_vecCandidates ), m_vecCandidates.data() ); - return true; -} - void CSteamNetworkingICESession::SetRemoteUsername( const char *pszUsername ) { m_strRemoteUsernameFragment = pszUsername; diff --git a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.h b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.h index 3f0830e..68c17c5 100644 --- a/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.h +++ b/src/steamnetworkingsockets/clientlib/steamnetworkingsockets_ice_client.h @@ -180,7 +180,6 @@ namespace SteamNetworkingSocketsLib { void SetRemoteUsername( const char *pszUsername ); void SetRemotePassword( const char *pszPassword ); - bool GetCandidates( CUtlVector< ICECandidate >* pOutVecCandidates ); const char* GetLocalPassword() { return m_strLocalPassword.c_str(); } IRawUDPSocket *GetSelectedSocket() { return m_pSelectedSocket; } SteamNetworkingIPAddr GetSelectedDestination();