Remove unused type GrCacheKey

R=robertphillips@google.com
Review URL: https://codereview.appspot.com/6947074

git-svn-id: http://skia.googlecode.com/svn/trunk@6858 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index d6a91eb..8f2ed62 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -23,7 +23,6 @@
 #include "GrTexture.h"
 
 class GrAutoScratchTexture;
-class GrCacheKey;
 class GrDrawState;
 class GrDrawTarget;
 class GrEffect;
@@ -138,12 +137,6 @@
                              void* srcData, size_t rowBytes);
 
     /**
-     * Look for a texture that matches 'key' in the cache. If not found,
-     * return NULL.
-     */
-    GrTexture* findTexture(const GrCacheKey& key);
-
-    /**
      *  Search for an entry based on key and dimensions. If found,
      *  return it. The return value will be NULL if not found.
      *
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index c39ee75..f688b7a 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -209,11 +209,6 @@
 
 }
 
-
-GrTexture* GrContext::findTexture(const GrCacheKey& key) {
-    return static_cast<GrTexture*>(fTextureCache->find(key.key()));
-}
-
 GrTexture* GrContext::findTexture(const GrTextureDesc& desc,
                                   const GrCacheData& cacheData,
                                   const GrTextureParams* params) {
diff --git a/src/gpu/GrResourceCache.h b/src/gpu/GrResourceCache.h
index 2541930..e1207a2 100644
--- a/src/gpu/GrResourceCache.h
+++ b/src/gpu/GrResourceCache.h
@@ -119,26 +119,6 @@
 };
 
 
-class GrCacheKey {
-public:
-    GrCacheKey(const GrTextureDesc& desc, const GrResourceKey& key)
-        : fDesc(desc)
-        , fKey(key) {
-    }
-
-    void set(const GrTextureDesc& desc, const GrResourceKey& key) {
-        fDesc = desc;
-        fKey = key;
-    }
-
-    const GrTextureDesc& desc() const { return fDesc; }
-    const GrResourceKey& key() const { return fKey; }
-
-protected:
-    GrTextureDesc fDesc;
-    GrResourceKey fKey;
-};
-
 ///////////////////////////////////////////////////////////////////////////////
 
 class GrResourceEntry {