remove unused
This commit is contained in:
@@ -561,28 +561,6 @@ void GameCommand::Apply( PlayerNumber pn ) const
|
|||||||
Apply( vpns );
|
Apply( vpns );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Hack: if this GameCommand would set the screen, clear the setting and return
|
|
||||||
* the screen that would have been set. */
|
|
||||||
CString GameCommand::GetAndClearScreen()
|
|
||||||
{
|
|
||||||
CString sRet;
|
|
||||||
FOREACH( Command, m_Commands.v, cmd )
|
|
||||||
{
|
|
||||||
CString sName = cmd->GetName();
|
|
||||||
if( sName == "screen" )
|
|
||||||
{
|
|
||||||
sRet = CString( cmd->GetArg(1) );
|
|
||||||
m_Commands.v.erase( cmd );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
m_sScreen = "";
|
|
||||||
|
|
||||||
return sRet;
|
|
||||||
}
|
|
||||||
|
|
||||||
void GameCommand::Apply( const vector<PlayerNumber> &vpns ) const
|
void GameCommand::Apply( const vector<PlayerNumber> &vpns ) const
|
||||||
{
|
{
|
||||||
if( m_Commands.v.size() )
|
if( m_Commands.v.size() )
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ public:
|
|||||||
bool DescribesCurrentModeForAllPlayers() const;
|
bool DescribesCurrentModeForAllPlayers() const;
|
||||||
bool IsPlayable( CString *why = NULL ) const;
|
bool IsPlayable( CString *why = NULL ) const;
|
||||||
bool IsZero() const;
|
bool IsZero() const;
|
||||||
CString GetAndClearScreen();
|
|
||||||
|
|
||||||
/* If true, Apply() will apply m_sScreen. If false, it won't, and you need
|
/* If true, Apply() will apply m_sScreen. If false, it won't, and you need
|
||||||
* to do it yourself. */
|
* to do it yourself. */
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
int m_iChangeMask;
|
int m_iChangeMask;
|
||||||
bool m_bExportWillSetANewScreen; // from an OptionRowHandler
|
|
||||||
|
|
||||||
vector<OptionRowHandler*> m_OptionRowHandlers;
|
vector<OptionRowHandler*> m_OptionRowHandlers;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user