remove unused parameter

This commit is contained in:
ehouse 2009-12-04 07:59:07 +00:00
parent 7ad59e3e2b
commit 337c36dfd2
2 changed files with 5 additions and 6 deletions

View file

@ -154,8 +154,8 @@ CRefMgr::FindOpenGameFor( const char* cookie, const char* connName,
__func__ ); __func__ );
*alreadyHere = true; *alreadyHere = true;
found = cref; found = cref;
} else if ( cref->GameOpen( cookie, nPlayersH, } else if ( cref->GameOpen( cookie, false,
false, alreadyHere ) ) { alreadyHere ) ) {
found = cref; found = cref;
} else { } else {
/* drop if we match on connName and it's not /* drop if we match on connName and it's not
@ -182,8 +182,8 @@ CRefMgr::FindOpenGameFor( const char* cookie, const char* connName,
if ( cref->SeedsBelong( connName ) ) { if ( cref->SeedsBelong( connName ) ) {
found = cref; found = cref;
} }
} else if ( cref->GameOpen( cookie, nPlayersH, } else if ( cref->GameOpen( cookie, true,
true, alreadyHere ) ) { alreadyHere ) ) {
found = cref; found = cref;
} else if ( cref->HasSocket_locked(socket) ) { } else if ( cref->HasSocket_locked(socket) ) {
logf( XW_LOGINFO, "%s: HasSocket case", __func__); logf( XW_LOGINFO, "%s: HasSocket case", __func__);

View file

@ -189,8 +189,7 @@ class SafeCref {
bool Connect( int socket, HostID srcID, int nPlayersH, int nPlayersS, bool Connect( int socket, HostID srcID, int nPlayersH, int nPlayersS,
int seed ) { int seed ) {
if ( IsValid() ) { if ( IsValid() ) {
m_cref->_Connect( socket, srcID, nPlayersH, nPlayersS, seed ); return m_cref->_Connect( socket, srcID, nPlayersH, nPlayersS, seed );
return true;
} else { } else {
return false; return false;
} }