remove unused param

This commit is contained in:
eehouse 2010-02-08 13:46:19 +00:00
parent 35a924cadd
commit 709f378271
4 changed files with 7 additions and 9 deletions

View file

@ -284,8 +284,7 @@ stateToGameInfo( GameInfoState* state )
/* preferences */
if ( state->results.prefsChanged ) {
loadCurPrefsFromState( globals, &globals->appPrefs, gi,
state->prefsPrefs );
loadCurPrefsFromState( &globals->appPrefs, gi, state->prefsPrefs );
}
}

View file

@ -1833,8 +1833,8 @@ ceDoNewGame( CEAppGlobals* globals, GIShow showWhat )
}
if ( results.prefsChanged ) {
loadCurPrefsFromState( globals, &globals->appPrefs,
&globals->gameInfo, &prefsPrefs );
loadCurPrefsFromState( &globals->appPrefs, &globals->gameInfo,
&prefsPrefs );
if ( results.colorsChanged ) {
updateForColors( globals );
}
@ -1954,7 +1954,7 @@ ceDoPrefsDlg( CEAppGlobals* globals )
assertOnTop( globals->hWnd );
if ( WrapPrefsDialog( globals->hWnd, globals, &prefsPrefs,
XP_FALSE, &colorsChanged, &langChanged ) ) {
loadCurPrefsFromState( globals, &globals->appPrefs, &globals->gameInfo,
loadCurPrefsFromState( &globals->appPrefs, &globals->gameInfo,
&prefsPrefs );
(void)cePositionBoard( globals );

View file

@ -169,8 +169,7 @@ loadStateFromCurPrefs( CEAppGlobals* XP_UNUSED_STANDALONE(globals),
} /* loadStateFromCurPrefs */
void
loadCurPrefsFromState( CEAppGlobals* XP_UNUSED_STANDALONE(globals),
CEAppPrefs* appPrefs,
loadCurPrefsFromState( CEAppPrefs* appPrefs,
CurGameInfo* gi, const CePrefsPrefs* prefsPrefs )
{
gi->hintsNotAllowed = prefsPrefs->gp.hintsNotAllowed;

View file

@ -60,8 +60,8 @@ XP_Bool WrapPrefsDialog( HWND hDlg, CEAppGlobals* globals,
XP_Bool* colorsChanged, XP_Bool* langChanged );
void loadStateFromCurPrefs( CEAppGlobals* globals, const CEAppPrefs* appPrefs,
const CurGameInfo* gi, CePrefsPrefs* prefsPrefs );
void loadCurPrefsFromState( CEAppGlobals* globals, CEAppPrefs* appPrefs,
CurGameInfo* gi, const CePrefsPrefs* prefsPrefs );
void loadCurPrefsFromState( CEAppPrefs* appPrefs, CurGameInfo* gi,
const CePrefsPrefs* prefsPrefs );
LRESULT CALLBACK PrefsDlg(HWND, UINT, WPARAM, LPARAM);