EffectChain: remove unused and broken isRunning()
isRunning() is neither used nor is it correct in terms of semantic, so we can remove it safely.
This commit is contained in:
@@ -55,7 +55,6 @@ public:
|
||||
void moveUp( Effect * _effect );
|
||||
bool processAudioBuffer( sampleFrame * _buf, const fpp_t _frames, bool hasInputNoise );
|
||||
void startRunning();
|
||||
bool isRunning();
|
||||
|
||||
void clear();
|
||||
|
||||
|
||||
@@ -237,26 +237,6 @@ void EffectChain::startRunning()
|
||||
|
||||
|
||||
|
||||
bool EffectChain::isRunning()
|
||||
{
|
||||
if( m_enabledModel.value() == false )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool running = false;
|
||||
|
||||
for( EffectList::Iterator it = m_effects.begin();
|
||||
it != m_effects.end() || !running; it++ )
|
||||
{
|
||||
running = ( *it )->isRunning() && running;
|
||||
}
|
||||
return running;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void EffectChain::clear()
|
||||
{
|
||||
emit aboutToClear();
|
||||
|
||||
Reference in New Issue
Block a user