diff --git a/src/engine/enginebuffer.cpp b/src/engine/enginebuffer.cpp index b81f1ea2913..55d57d133ed 100644 --- a/src/engine/enginebuffer.cpp +++ b/src/engine/enginebuffer.cpp @@ -1335,12 +1335,6 @@ void EngineBuffer::updateIndicators(double speed, int iBufferSize) { speed = 0; } - // Report fractional playpos to SyncControl. - // TODO(rryan) It's kind of hacky that this is in updateIndicators but it - // prevents us from computing fFractionalPlaypos multiple times per - // EngineBuffer::process(). - m_pSyncControl->reportTrackPosition(fFractionalPlaypos); - // Update indicators that are only updated after every // sampleRate/kiUpdateRate samples processed. (e.g. playposSlider) if (m_iSamplesSinceLastIndicatorUpdate > diff --git a/src/engine/sync/synccontrol.cpp b/src/engine/sync/synccontrol.cpp index 1c0e0361066..1eb37aa5d80 100644 --- a/src/engine/sync/synccontrol.cpp +++ b/src/engine/sync/synccontrol.cpp @@ -330,15 +330,6 @@ void SyncControl::setInstantaneousBpm(double bpm) { m_pBpmControl->setInstantaneousBpm(bpm * m_masterBpmAdjustFactor); } -void SyncControl::reportTrackPosition(double fractionalPlaypos) { - // If we're close to the end, and master, disable master so we don't stop - // the party. - if (isMaster(getSyncMode()) && - fractionalPlaypos > kTrackPositionMasterHandoff) { - m_pChannel->getEngineBuffer()->requestSyncMode(SYNC_FOLLOWER); - } -} - // called from an engine worker thread void SyncControl::trackLoaded(TrackPointer pNewTrack) { mixxx::BeatsPointer pBeats; diff --git a/src/engine/sync/synccontrol.h b/src/engine/sync/synccontrol.h index 548dc455b65..5afed04ba1e 100644 --- a/src/engine/sync/synccontrol.h +++ b/src/engine/sync/synccontrol.h @@ -59,7 +59,6 @@ class SyncControl : public EngineControl, public Syncable { void setEngineControls(RateControl* pRateControl, BpmControl* pBpmControl); - void reportTrackPosition(double fractionalPlaypos); void reportPlayerSpeed(double speed, bool scratching); void notifySeek(double dNewPlaypos) override; void trackLoaded(TrackPointer pNewTrack) override;