From 9a742b5b0739dca3da5410d125d24d08c88b07cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"J.=20Rene=CC=81e=20Beach"?= <splendidnoise@gmail.com>
Date: Tue, 5 Feb 2013 15:20:10 -0500
Subject: [PATCH] Issue #1908906 by jessebeach: Remove unused code from
 toolbar_pre_render_item that throws a warning on custom
 themed tabs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: J. Renée Beach <splendidnoise@gmail.com>
---
 core/modules/toolbar/toolbar.module |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module
index 4b4c76d..19de0b5 100644
--- a/core/modules/toolbar/toolbar.module
+++ b/core/modules/toolbar/toolbar.module
@@ -283,13 +283,6 @@ function theme_toolbar(&$variables) {
  */
 function toolbar_pre_render_item($element) {
 
-  // Attributes are nested in the #options property passed to l().
-  // To make the return structure of toolbar_pre_render_item() uniform,
-  // attributes will always be returned in the #attributes property. These
-  // properties will be included in the #options parameter passed to l() in
-  // theme_toolbar_tab().
-  $element['#attributes'] = $element['tab']['#options']['attributes'];
-
   // If tray content is present, markup the tray and its associated trigger.
   if (!empty($element['tray'])) {
 
-- 
1.7.10.4

