Removed unused parameters

I removed unused parameters wherever it was trivial to do so.
Review URL: https://codereview.chromium.org/12469002

git-svn-id: http://skia.googlecode.com/svn/trunk@8068 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkRegion.cpp b/src/core/SkRegion.cpp
index 936c87e..4b50bad 100644
--- a/src/core/SkRegion.cpp
+++ b/src/core/SkRegion.cpp
@@ -1173,7 +1173,7 @@
     return runs;
 }
 
-static void compute_bounds(const SkRegion::RunType runs[], int count,
+static void compute_bounds(const SkRegion::RunType runs[],
                            SkIRect* bounds, int* ySpanCountPtr,
                            int* intervalCountPtr) {
     assert_sentinel(runs[0], false);    // top
@@ -1239,7 +1239,7 @@
             {
                 SkIRect bounds;
                 int ySpanCount, intervalCount;
-                compute_bounds(run, stop - run, &bounds, &ySpanCount, &intervalCount);
+                compute_bounds(run, &bounds, &ySpanCount, &intervalCount);
 
                 SkASSERT(bounds == fBounds);
                 SkASSERT(ySpanCount > 0);
diff --git a/src/effects/SkBlurDrawLooper.cpp b/src/effects/SkBlurDrawLooper.cpp
index b5a8754..9585214 100644
--- a/src/effects/SkBlurDrawLooper.cpp
+++ b/src/effects/SkBlurDrawLooper.cpp
@@ -74,7 +74,7 @@
     buffer.writeUInt(fBlurFlags);
 }
 
-void SkBlurDrawLooper::init(SkCanvas* canvas) {
+void SkBlurDrawLooper::init(SkCanvas*) {
     fState = kBeforeEdge;
 }
 
diff --git a/src/effects/SkMorphologyImageFilter.cpp b/src/effects/SkMorphologyImageFilter.cpp
index 7bb4c93..bca18e6 100644
--- a/src/effects/SkMorphologyImageFilter.cpp
+++ b/src/effects/SkMorphologyImageFilter.cpp
@@ -420,7 +420,7 @@
 GR_DEFINE_EFFECT_TEST(GrMorphologyEffect);
 
 GrEffectRef* GrMorphologyEffect::TestCreate(SkMWCRandom* random,
-                                            GrContext* context,
+                                            GrContext*,
                                             GrTexture* textures[]) {
     int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx :
                                       GrEffectUnitTest::kAlphaTextureIdx;
diff --git a/src/effects/SkTestImageFilters.cpp b/src/effects/SkTestImageFilters.cpp
index c280555..9af61c8 100755
--- a/src/effects/SkTestImageFilters.cpp
+++ b/src/effects/SkTestImageFilters.cpp
@@ -69,7 +69,7 @@
 ///////////////////////////////////////////////////////////////////////////////
 
 bool SkDownSampleImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& src,
-                                            const SkMatrix& matrix,
+                                            const SkMatrix&,
                                             SkBitmap* result, SkIPoint*) {
     SkScalar scale = fScale;
     if (scale > SK_Scalar1 || scale <= 0) {
diff --git a/src/effects/gradients/SkRadialGradient.cpp b/src/effects/gradients/SkRadialGradient.cpp
index ff3a2aa..3f670ad 100644
--- a/src/effects/gradients/SkRadialGradient.cpp
+++ b/src/effects/gradients/SkRadialGradient.cpp
@@ -554,7 +554,7 @@
 /////////////////////////////////////////////////////////////////////
 
 void GrGLRadialGradient::emitCode(GrGLShaderBuilder* builder,
-                                  const GrEffectStage& stage,
+                                  const GrEffectStage&,
                                   EffectKey key,
                                   const char* vertexCoords,
                                   const char* outputColor,
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp
index fe516ba..44b03d6 100644
--- a/src/effects/gradients/SkSweepGradient.cpp
+++ b/src/effects/gradients/SkSweepGradient.cpp
@@ -464,7 +464,7 @@
 /////////////////////////////////////////////////////////////////////
 
 void GrGLSweepGradient::emitCode(GrGLShaderBuilder* builder,
-                                 const GrEffectStage& stage,
+                                 const GrEffectStage&,
                                  EffectKey key,
                                  const char* vertexCoords,
                                  const char* outputColor,
diff --git a/src/effects/gradients/SkTwoPointConicalGradient.cpp b/src/effects/gradients/SkTwoPointConicalGradient.cpp
index f56e7b4..d3fb4dd 100644
--- a/src/effects/gradients/SkTwoPointConicalGradient.cpp
+++ b/src/effects/gradients/SkTwoPointConicalGradient.cpp
@@ -484,7 +484,7 @@
 }
 
 void GrGLConical2Gradient::emitCode(GrGLShaderBuilder* builder,
-                                    const GrEffectStage& stage,
+                                    const GrEffectStage&,
                                     EffectKey key,
                                     const char* vertexCoords,
                                     const char* outputColor,
diff --git a/src/effects/gradients/SkTwoPointRadialGradient.cpp b/src/effects/gradients/SkTwoPointRadialGradient.cpp
index 40e2ac3..0bf308b 100644
--- a/src/effects/gradients/SkTwoPointRadialGradient.cpp
+++ b/src/effects/gradients/SkTwoPointRadialGradient.cpp
@@ -531,7 +531,7 @@
 }
 
 void GrGLRadial2Gradient::emitCode(GrGLShaderBuilder* builder,
-                                   const GrEffectStage& stage,
+                                   const GrEffectStage&,
                                    EffectKey key,
                                    const char* vertexCoords,
                                    const char* outputColor,
diff --git a/src/gpu/GrBufferAllocPool.cpp b/src/gpu/GrBufferAllocPool.cpp
index db9b2c8..65d76c4 100644
--- a/src/gpu/GrBufferAllocPool.cpp
+++ b/src/gpu/GrBufferAllocPool.cpp
@@ -16,7 +16,7 @@
 #if GR_DEBUG
     #define VALIDATE validate
 #else
-    static void VALIDATE(bool x = false) {}
+    static void VALIDATE(bool = false) {}
 #endif
 
 // page size
diff --git a/src/gpu/GrTHashCache.h b/src/gpu/GrTHashCache.h
index 3427ffe..6bd58c2 100644
--- a/src/gpu/GrTHashCache.h
+++ b/src/gpu/GrTHashCache.h
@@ -20,7 +20,7 @@
 template <typename T> class GrTDefaultFindFunctor {
 public:
     // always accept the first element examined
-    bool operator()(const T* elem) const { return true; }
+    bool operator()(const T*) const { return true; }
 };
 
 /**
diff --git a/src/gpu/effects/GrConfigConversionEffect.cpp b/src/gpu/effects/GrConfigConversionEffect.cpp
index f2c5d09..5cc05e2 100644
--- a/src/gpu/effects/GrConfigConversionEffect.cpp
+++ b/src/gpu/effects/GrConfigConversionEffect.cpp
@@ -137,7 +137,7 @@
 GR_DEFINE_EFFECT_TEST(GrConfigConversionEffect);
 
 GrEffectRef* GrConfigConversionEffect::TestCreate(SkMWCRandom* random,
-                                                  GrContext* context,
+                                                  GrContext*,
                                                   GrTexture* textures[]) {
     PMConversion pmConv = static_cast<PMConversion>(random->nextULessThan(kPMConversionCnt));
     bool swapRB;
diff --git a/src/gpu/effects/GrConvolutionEffect.cpp b/src/gpu/effects/GrConvolutionEffect.cpp
index 1c0e8f5..794a936 100644
--- a/src/gpu/effects/GrConvolutionEffect.cpp
+++ b/src/gpu/effects/GrConvolutionEffect.cpp
@@ -180,7 +180,7 @@
 GR_DEFINE_EFFECT_TEST(GrConvolutionEffect);
 
 GrEffectRef* GrConvolutionEffect::TestCreate(SkMWCRandom* random,
-                                             GrContext* context,
+                                             GrContext*,
                                              GrTexture* textures[]) {
     int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx :
                                       GrEffectUnitTest::kAlphaTextureIdx;
diff --git a/src/gpu/effects/GrConvolutionEffect.h b/src/gpu/effects/GrConvolutionEffect.h
index b2b24e5..e4faa94 100644
--- a/src/gpu/effects/GrConvolutionEffect.h
+++ b/src/gpu/effects/GrConvolutionEffect.h
@@ -52,7 +52,7 @@
 
     virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE;
 
-    virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const {
+    virtual void getConstantColorComponents(GrColor*, uint32_t* validFlags) const {
         // If the texture was opaque we could know that the output color if we knew the sum of the
         // kernel values.
         *validFlags = 0;
diff --git a/src/gpu/effects/GrSimpleTextureEffect.cpp b/src/gpu/effects/GrSimpleTextureEffect.cpp
index 58ac3c0..37e6eb4 100644
--- a/src/gpu/effects/GrSimpleTextureEffect.cpp
+++ b/src/gpu/effects/GrSimpleTextureEffect.cpp
@@ -68,7 +68,7 @@
 GR_DEFINE_EFFECT_TEST(GrSimpleTextureEffect);
 
 GrEffectRef* GrSimpleTextureEffect::TestCreate(SkMWCRandom* random,
-                                               GrContext* context,
+                                               GrContext*,
                                                GrTexture* textures[]) {
     int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx :
                                       GrEffectUnitTest::kAlphaTextureIdx;
diff --git a/src/gpu/effects/GrTextureDomainEffect.cpp b/src/gpu/effects/GrTextureDomainEffect.cpp
index 851bdcc..e54af25 100644
--- a/src/gpu/effects/GrTextureDomainEffect.cpp
+++ b/src/gpu/effects/GrTextureDomainEffect.cpp
@@ -214,7 +214,7 @@
 GR_DEFINE_EFFECT_TEST(GrTextureDomainEffect);
 
 GrEffectRef* GrTextureDomainEffect::TestCreate(SkMWCRandom* random,
-                                               GrContext* context,
+                                               GrContext*,
                                                GrTexture* textures[]) {
     int texIdx = random->nextBool() ? GrEffectUnitTest::kSkiaPMTextureIdx :
                                       GrEffectUnitTest::kAlphaTextureIdx;
diff --git a/src/gpu/effects/GrTextureStripAtlas.cpp b/src/gpu/effects/GrTextureStripAtlas.cpp
index 9081fb6..c67a112 100644
--- a/src/gpu/effects/GrTextureStripAtlas.cpp
+++ b/src/gpu/effects/GrTextureStripAtlas.cpp
@@ -34,7 +34,7 @@
 }
 
 // Remove the specified atlas from the cache
-void GrTextureStripAtlas::CleanUp(const GrContext* context, void* info) {
+void GrTextureStripAtlas::CleanUp(const GrContext*, void* info) {
     GrAssert(NULL != info);
 
     AtlasEntry* entry = static_cast<AtlasEntry*>(info);
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp
index c497577..1ed68e5 100644
--- a/src/image/SkSurface_Gpu.cpp
+++ b/src/image/SkSurface_Gpu.cpp
@@ -86,7 +86,7 @@
 // Copy the contents of the SkGpuDevice into a new texture and give that
 // texture to the SkImage. Note that this flushes the SkGpuDevice but
 // doesn't force an OpenGL flush.
-void SkSurface_Gpu::onCopyOnWrite(SkImage* image, SkCanvas* canvas) {
+void SkSurface_Gpu::onCopyOnWrite(SkImage* image, SkCanvas*) {
     GrRenderTarget* rt = (GrRenderTarget*) fDevice->accessRenderTarget();
 
     // are we sharing our render target with the image?
diff --git a/src/ports/SkFontHost_sandbox_none.cpp b/src/ports/SkFontHost_sandbox_none.cpp
index a52bbff..1c59cd1 100644
--- a/src/ports/SkFontHost_sandbox_none.cpp
+++ b/src/ports/SkFontHost_sandbox_none.cpp
@@ -9,6 +9,6 @@
 #include "SkTypeface.h"
 
 //static
-void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) {
+void SkFontHost::EnsureTypefaceAccessible(const SkTypeface&) {
     //No sandbox, nothing to do.
 }