From 4de2885258adb82c562d7770179904f78572b9a8 Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Sat, 13 Oct 2012 12:07:13 -0400
Subject: [PATCH] Issue #1275684 by catch: Image module creates a cache bin
 then never uses it.

---
 modules/image/image.install |   18 +++++++++++++++---
 modules/image/image.module  |    7 -------
 2 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/modules/image/image.install b/modules/image/image.install
index b7aac7152982d5ef8fed836b4d1bd23d36ac9294..27d5efb88c5f82e00c78f56cd00f1024dddea7c9 100644
--- a/modules/image/image.install
+++ b/modules/image/image.install
@@ -28,9 +28,6 @@ function image_uninstall() {
 function image_schema() {
   $schema = array();
 
-  $schema['cache_image'] = drupal_get_schema_unprocessed('system', 'cache');
-  $schema['cache_image']['description'] = 'Cache table used to store information about image manipulations that are in-progress.';
-
   $schema['image_styles'] = array(
     'description' => 'Stores configuration options for image styles.',
     'fields' => array(
@@ -488,3 +485,18 @@ function image_requirements($phase) {
 
   return $requirements;
 }
+
+/**
+ * @addtogroup update-7.x-extra
+ */
+
+/**
+ * Drop the unused 'cache_image' bin.
+ */
+function image_update_7002() {
+  db_drop_table('cache_image');
+}
+
+/**
+ * @} End of "addtogroup updates-7.x-extra"
+ */
diff --git a/modules/image/image.module b/modules/image/image.module
index ff50452d598085dd4dac64bfa24409852af7b3fe..eaf72c37252735d20ea1b220815a2a664d0212d0 100644
--- a/modules/image/image.module
+++ b/modules/image/image.module
@@ -261,13 +261,6 @@ function image_system_file_system_settings_submit($form, &$form_state) {
 }
 
 /**
- * Implements hook_flush_caches().
- */
-function image_flush_caches() {
-  return array('cache_image');
-}
-
-/**
  * Implements hook_file_download().
  *
  * Control the access to files underneath the styles directory.
-- 
1.7.10.4

