From 28437fd54af1f73803be735410e7307217a86f17 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Wed, 25 Nov 2015 13:43:46 +0000
Subject: [PATCH] Issue #2607676 by andypost: Remove useless assigning in
 template_preprocess_views_view_unformatted()

---
 core/modules/views/views.theme.inc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc
index 6a0a141d30c4..d84277f3f61a 100644
--- a/core/modules/views/views.theme.inc
+++ b/core/modules/views/views.theme.inc
@@ -740,8 +740,7 @@ function template_preprocess_views_view_unformatted(&$variables) {
   foreach ($rows as $id => $row) {
     $variables['rows'][$id] = array();
     $variables['rows'][$id]['content'] = $row;
-    $variables['rows'][$id]['attributes'] = array();
-    $variables['rows'][$id]['attributes'] = new Attribute($variables['rows'][$id]['attributes']);
+    $variables['rows'][$id]['attributes'] = new Attribute();
     if ($row_class = $view->style_plugin->getRowClass($id)) {
       $variables['rows'][$id]['attributes']->addClass($row_class);
     }
-- 
GitLab