From 79eac411a01b6b3773eceee17877d02b59342f39 Mon Sep 17 00:00:00 2001 From: Rossmaxx <74815851+Rossmaxx@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:51:18 +0530 Subject: [PATCH] Removed dead code using #if 0 (#7521) Removed code that's has been deactivated using `#if 0`. --- src/core/AudioEngine.cpp | 11 ----------- src/core/ProjectRenderer.cpp | 11 ----------- src/tracks/SampleTrack.cpp | 3 --- 3 files changed, 25 deletions(-) diff --git a/src/core/AudioEngine.cpp b/src/core/AudioEngine.cpp index 77453a8bad4..0da65f426a4 100644 --- a/src/core/AudioEngine.cpp +++ b/src/core/AudioEngine.cpp @@ -1131,17 +1131,6 @@ void AudioEngine::fifoWriter::run() { disable_denormals(); -#if 0 -#if defined(LMMS_BUILD_LINUX) || defined(LMMS_BUILD_FREEBSD) -#ifdef LMMS_HAVE_SCHED_H - cpu_set_t mask; - CPU_ZERO( &mask ); - CPU_SET( 0, &mask ); - sched_setaffinity( 0, sizeof( mask ), &mask ); -#endif -#endif -#endif - const fpp_t frames = m_audioEngine->framesPerPeriod(); while( m_writing ) { diff --git a/src/core/ProjectRenderer.cpp b/src/core/ProjectRenderer.cpp index 3d83515f22e..e5410e6f272 100644 --- a/src/core/ProjectRenderer.cpp +++ b/src/core/ProjectRenderer.cpp @@ -159,17 +159,6 @@ void ProjectRenderer::startProcessing() void ProjectRenderer::run() { -#if 0 -#if defined(LMMS_BUILD_LINUX) || defined(LMMS_BUILD_FREEBSD) -#ifdef LMMS_HAVE_SCHED_H - cpu_set_t mask; - CPU_ZERO( &mask ); - CPU_SET( 0, &mask ); - sched_setaffinity( 0, sizeof( mask ), &mask ); -#endif -#endif -#endif - PerfLogTimer perfLog("Project Render"); Engine::getSong()->startExport(); diff --git a/src/tracks/SampleTrack.cpp b/src/tracks/SampleTrack.cpp index 609043efe12..8ad75799dd0 100644 --- a/src/tracks/SampleTrack.cpp +++ b/src/tracks/SampleTrack.cpp @@ -191,9 +191,6 @@ Clip * SampleTrack::createClip(const TimePos & pos) void SampleTrack::saveTrackSpecificSettings(QDomDocument& _doc, QDomElement& _this, bool presetMode) { m_audioPort.effects()->saveState( _doc, _this ); -#if 0 - _this.setAttribute( "icon", tlb->pixmapFile() ); -#endif m_volumeModel.saveSettings( _doc, _this, "vol" ); m_panningModel.saveSettings( _doc, _this, "pan" ); m_mixerChannelModel.saveSettings( _doc, _this, "mixch" );