removed unnecessary code
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40532
This commit is contained in:
parent
8553f12d59
commit
81a6bc3288
@ -179,33 +179,7 @@ CForward *CForwardManager::ForwardMake()
|
||||
|
||||
void CForwardManager::OnPluginPauseChange(IPlugin *plugin, bool paused)
|
||||
{
|
||||
List<CForward *>::iterator iter;
|
||||
CForward *fwd;
|
||||
|
||||
if (paused)
|
||||
{
|
||||
for (iter=m_managed.begin(); iter!=m_managed.end(); iter++)
|
||||
{
|
||||
fwd = (*iter);
|
||||
fwd->PushPausedFunctions(plugin);
|
||||
}
|
||||
for (iter=m_unmanaged.begin(); iter!=m_unmanaged.end(); iter++)
|
||||
{
|
||||
fwd = (*iter);
|
||||
fwd->PushPausedFunctions(plugin);
|
||||
}
|
||||
} else {
|
||||
for (iter=m_managed.begin(); iter!=m_managed.end(); iter++)
|
||||
{
|
||||
fwd = (*iter);
|
||||
fwd->PopPausedFunctions(plugin);
|
||||
}
|
||||
for (iter=m_unmanaged.begin(); iter!=m_unmanaged.end(); iter++)
|
||||
{
|
||||
fwd = (*iter);
|
||||
fwd->PopPausedFunctions(plugin);
|
||||
}
|
||||
}
|
||||
/* No longer used */
|
||||
}
|
||||
|
||||
/*************************************
|
||||
@ -705,41 +679,3 @@ ExecType CForward::GetExecType() const
|
||||
{
|
||||
return m_ExecType;
|
||||
}
|
||||
|
||||
void CForward::PushPausedFunctions(IPlugin *plugin)
|
||||
{
|
||||
FuncIter iter;
|
||||
IPluginFunction *func;
|
||||
IPluginContext *pContext = plugin->GetBaseContext();
|
||||
|
||||
for (iter=m_functions.begin(); iter!=m_functions.end();)
|
||||
{
|
||||
func = (*iter);
|
||||
if (func->GetParentContext() == pContext)
|
||||
{
|
||||
m_paused.push_back(func);
|
||||
iter = m_functions.erase(iter);
|
||||
} else {
|
||||
iter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CForward::PopPausedFunctions(IPlugin *plugin)
|
||||
{
|
||||
FuncIter iter;
|
||||
IPluginFunction *func;
|
||||
IPluginContext *pContext = plugin->GetBaseContext();
|
||||
|
||||
for (iter=m_paused.begin(); iter!=m_paused.end();)
|
||||
{
|
||||
func = (*iter);
|
||||
if (func->GetParentContext() == pContext)
|
||||
{
|
||||
m_functions.push_back(func);
|
||||
iter = m_paused.erase(iter);
|
||||
} else {
|
||||
iter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -70,8 +70,6 @@ public:
|
||||
unsigned int num_params,
|
||||
ParamType *types,
|
||||
va_list ap);
|
||||
void PushPausedFunctions(IPlugin *plugin);
|
||||
void PopPausedFunctions(IPlugin *plugin);
|
||||
private:
|
||||
void _Int_PushArray(cell_t *inarray, unsigned int cells, int flags);
|
||||
void _Int_PushString(cell_t *inarray, unsigned int cells, int sz_flags, int cp_flags);
|
||||
@ -85,7 +83,6 @@ protected:
|
||||
* Destroying these things and using new/delete for their members feels bad.
|
||||
*/
|
||||
mutable List<IPluginFunction *> m_functions;
|
||||
List<IPluginFunction *> m_paused;
|
||||
|
||||
/* Type and name information */
|
||||
FwdParamInfo m_params[SP_MAX_EXEC_PARAMS];
|
||||
|
Loading…
Reference in New Issue
Block a user