From 20fe13eb87f4093762171ae6b80599588050f7c6 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Tue, 12 Feb 2013 12:13:39 +0000
Subject: [PATCH] Issue #1908906 by jessebeach: Remove unused code from
 toolbar_pre_render_item() that throws a warning on custom themed tabs.

---
 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 4bbaa5434f0b..e4996bc189e8 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'])) {
 
-- 
GitLab