mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
remove unused parameter
This commit is contained in:
parent
7ad59e3e2b
commit
337c36dfd2
2 changed files with 5 additions and 6 deletions
|
@ -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__);
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue