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:
Tobias Doerffel
2014-02-07 00:34:32 +01:00
parent 124ce9823b
commit 3125a7a954
2 changed files with 0 additions and 21 deletions

View File

@@ -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();

View File

@@ -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();