Skip to content

Commit

Permalink
Remove the unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
khoidauminh committed Nov 11, 2024
1 parent b9bd512 commit 38cd04d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/AudioFileProcessor/AudioFileProcessorWaveView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,6 @@ void AudioFileProcessorWaveView::updateGraph()
m_graph.fill(Qt::transparent);
QPainter p(&m_graph);
p.setPen(QColor(255, 255, 255));

const auto dataOffset = m_reversed ? m_sample->sampleSize() - m_to : m_from;

m_sampleThumbnail = SampleThumbnail{*m_sample};

Expand All @@ -354,7 +352,6 @@ void AudioFileProcessorWaveView::updateGraph()
param.clipRect = m_graph.rect();

m_sampleThumbnail.visualize(param, p);

}

void AudioFileProcessorWaveView::zoom(const bool out)
Expand Down Expand Up @@ -479,7 +476,7 @@ void AudioFileProcessorWaveView::reverse()
- m_sample->endFrame()
- m_sample->startFrame()
);

const int fromTmp = m_from;

setFrom(m_sample->sampleSize() - m_to);
Expand Down

0 comments on commit 38cd04d

Please sign in to comment.