From 3125a7a954b6fa0482a343b3f46e5b406f553c17 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 7 Feb 2014 00:34:32 +0100 Subject: [PATCH] EffectChain: remove unused and broken isRunning() isRunning() is neither used nor is it correct in terms of semantic, so we can remove it safely. --- include/EffectChain.h | 1 - src/core/EffectChain.cpp | 20 -------------------- 2 files changed, 21 deletions(-) diff --git a/include/EffectChain.h b/include/EffectChain.h index 620caa427..cb2d817ea 100644 --- a/include/EffectChain.h +++ b/include/EffectChain.h @@ -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(); diff --git a/src/core/EffectChain.cpp b/src/core/EffectChain.cpp index 83268950e..54ef54bc5 100644 --- a/src/core/EffectChain.cpp +++ b/src/core/EffectChain.cpp @@ -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();