Skip to content

Commit 3c731e7

Browse files
committed
Remove debug variable.
1 parent 8449e7f commit 3c731e7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Source/FDWaveformView.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,6 @@ final public class FDWaveformRenderOperation: Operation {
708708

709709
var outputSamples = [CGFloat]()
710710
var sampleBuffer = Data()
711-
712-
var totalSampleCount = 0
713711

714712
// 16-bit samples
715713
reader.startReading()
@@ -729,8 +727,6 @@ final public class FDWaveformRenderOperation: Operation {
729727
CMBlockBufferGetDataPointer(readBuffer, 0, &readBufferLength, nil, &readBufferPointer)
730728
sampleBuffer.append(UnsafeBufferPointer(start: readBufferPointer, count: readBufferLength))
731729
CMSampleBufferInvalidate(readSampleBuffer)
732-
733-
totalSampleCount += readBufferLength / 2
734730

735731
let totalSamples = sampleBuffer.count / MemoryLayout<Int16>.size
736732
let downSampledLength = totalSamples / samplesPerPixel

0 commit comments

Comments
 (0)