From 2e928d56c26f3075da24c7f0c1ccd95978a60681 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Tue, 3 Dec 2013 12:01:24 +0000
Subject: [PATCH] Issue #2087239 by ellishettinga, lauriii, c4rl: Remove
 theme_exposed_filters().

---
 core/includes/theme.inc           |  3 ---
 core/modules/system/system.module | 34 -------------------------------
 2 files changed, 37 deletions(-)

diff --git a/core/includes/theme.inc b/core/includes/theme.inc
index a6d936216574..1010c29b0169 100644
--- a/core/includes/theme.inc
+++ b/core/includes/theme.inc
@@ -2814,9 +2814,6 @@ function drupal_common_theme() {
     'date' => array(
       'render element' => 'element',
     ),
-    'exposed_filters' => array(
-      'render element' => 'form',
-    ),
     'checkboxes' => array(
       'render element' => 'element',
     ),
diff --git a/core/modules/system/system.module b/core/modules/system/system.module
index 883faae3b039..7f9806a4e933 100644
--- a/core/modules/system/system.module
+++ b/core/modules/system/system.module
@@ -3118,40 +3118,6 @@ function theme_system_config_form($variables) {
   return drupal_render_children($variables['form']);
 }
 
-/**
- * Returns HTML for an exposed filter form.
- *
- * @param $variables
- *   An associative array containing:
- *   - form: An associative array containing the structure of the form.
- *
- * @return
- *   A string containing an HTML-formatted form.
- *
- * @ingroup themeable
- */
-function theme_exposed_filters($variables) {
-  $form = $variables['form'];
-  $output = '';
-
-  if (isset($form['current'])) {
-    $items = array();
-    foreach (element_children($form['current']) as $key) {
-      $items[] = $form['current'][$key];
-    }
-    $item_list = array(
-      '#theme' => 'item_list',
-      '#items' => $items,
-      '#attributes' => array('class' => array('clearfix', 'current-filters')),
-    );
-    $output .= drupal_render($item_list);
-  }
-
-  $output .= drupal_render_children($form);
-
-  return '<div class="exposed-filters">' . $output . '</div>';
-}
-
 /**
  * Implements hook_admin_paths().
  */
-- 
GitLab