Set but not used variables cleanup (gcc 4.6)
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Sep 2011 23:24:34 +0000 (23:24 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Sep 2011 23:24:34 +0000 (23:24 +0000)
https://bugs.webkit.org/show_bug.cgi?id=68157

Patch by Max Perepelitsyn <pph34r@gmail.com> on 2011-09-16
Reviewed by Darin Adler.

* platform/audio/ReverbConvolverStage.cpp:
(WebCore::ReverbConvolverStage::process):
* rendering/RenderMediaControlsChromium.cpp:
(WebCore::paintMediaButton):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@95333 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/audio/ReverbConvolverStage.cpp
Source/WebCore/rendering/RenderMediaControlsChromium.cpp

index a6486b1..684d062 100644 (file)
@@ -1,3 +1,15 @@
+2011-09-16  Max Perepelitsyn  <pph34r@gmail.com>
+
+        Set but not used variables cleanup (gcc 4.6)
+        https://bugs.webkit.org/show_bug.cgi?id=68157
+
+        Reviewed by Darin Adler.
+
+        * platform/audio/ReverbConvolverStage.cpp:
+        (WebCore::ReverbConvolverStage::process):
+        * rendering/RenderMediaControlsChromium.cpp:
+        (WebCore::paintMediaButton):
+
 2011-09-16  Geoffrey Garen  <ggaren@apple.com>
 
         Removed undetectable style.filter.
index 87e2de4..f207d19 100644 (file)
@@ -122,8 +122,6 @@ void ReverbConvolverStage::process(float* source, size_t framesToProcess)
     if (!isTemporaryBufferSafe)
         return;
 
-    int writeIndex = 0;
-
     if (m_framesProcessed < m_preDelayLength) {
         // For the first m_preDelayLength frames don't process the convolver, instead simply buffer in the pre-delay.
         // But while buffering the pre-delay, we still need to update our index.
@@ -135,7 +133,7 @@ void ReverbConvolverStage::process(float* source, size_t framesToProcess)
         m_convolver->process(&m_fftKernel, preDelayedSource, temporaryBuffer, framesToProcess);
 
         // Now accumulate into reverb's accumulation buffer.
-        writeIndex = m_accumulationBuffer->accumulate(temporaryBuffer, framesToProcess, &m_accumulationReadIndex, m_postDelayLength);
+        m_accumulationBuffer->accumulate(temporaryBuffer, framesToProcess, &m_accumulationReadIndex, m_postDelayLength);
     }
 
     // Finally copy input to pre-delay.
index 5138b7a..b94fcc0 100644 (file)
@@ -63,7 +63,6 @@ static bool hasSource(const HTMLMediaElement* mediaElement)
 
 static bool paintMediaButton(GraphicsContext* context, const IntRect& rect, Image* image)
 {
-    IntRect imageRect = image->rect();
     context->drawImage(image, ColorSpaceDeviceRGB, rect);
     return true;
 }