From 72e24ae8955780b4588bde83dbe98831d620fbd9 Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Thu, 15 Sep 2011 19:05:27 -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 5f096cc2ffd4c11a70ce491c796b74734a38b668..406d7974264e4912b699cb7acc1042939652c637 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(
@@ -280,3 +277,18 @@ function image_requirements($phase) {
 
   return $requirements;
 }
+
+/**
+ * @addtogroup update-7.x-extra
+ */
+
+/**
+ * Drop the unused 'cache_image' bin.
+ */
+function image_update_7000() {
+  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 008a36513a943e5538aaffc93fac60c6bf2cb52f..6d5803c568e7c6b05afc409d88b837fc9bdcd004 100644
--- a/modules/image/image.module
+++ b/modules/image/image.module
@@ -259,13 +259,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.5.4

