From 6a604e04f67fb2b38512bef73d95ea03171ea564 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Wed, 14 Aug 2013 07:06:54 -0500 Subject: [PATCH] Issue #2062585 by sergeypavlenko: Remove Unused local variables from /core/modules/node/node.module. --- core/modules/node/node.module | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 26f11a254cc..dab86965b96 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -807,7 +807,7 @@ function node_permission() { ); // Generate standard node permissions for all applicable node types. - foreach (node_permissions_get_configured_types() as $name => $type) { + foreach (node_permissions_get_configured_types() as $type) { $perms += node_list_permissions($type); } @@ -2264,9 +2264,6 @@ function node_query_node_access_alter(AlterableInterface $query) { if (!$op = $query->getMetaData('op')) { $op = 'view'; } - if (!$langcode = $query->getMetaData('langcode')) { - $langcode = FALSE; - } // If $account can bypass node access, or there are no node access modules, // or the operation is 'view' and the $account has a global view grant