Skip to content

Commit

Permalink
Removed dead code using #if 0 (#7521)
Browse files Browse the repository at this point in the history
Removed code that's has been deactivated using `#if 0`.
  • Loading branch information
Rossmaxx authored Oct 7, 2024
1 parent 639e122 commit 79eac41
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
11 changes: 0 additions & 11 deletions src/core/AudioEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down
11 changes: 0 additions & 11 deletions src/core/ProjectRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 0 additions & 3 deletions src/tracks/SampleTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
Expand Down

0 comments on commit 79eac41

Please sign in to comment.