diff --git a/core/modules/node/lib/Drupal/node/NodeFormController.php b/core/modules/node/lib/Drupal/node/NodeFormController.php
index 3fb7584..3a629ff 100644
--- a/core/modules/node/lib/Drupal/node/NodeFormController.php
+++ b/core/modules/node/lib/Drupal/node/NodeFormController.php
@@ -321,7 +321,7 @@ public function validate(array $form, array &$form_state) {
     }
 
     // Validate the "authored by" field.
-    if (!empty($form_state['values']['name']) && !($account = user_load_by_name($form_state['values']['name']))) {
+    if (!empty($form_state['values']['name']) && !(user_load_by_name($form_state['values']['name']))) {
       // The use of empty() is mandatory in the context of usernames
       // as the empty string denotes the anonymous user. In case we
       // are dealing with an anonymous user we set the user ID to 0.
diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeSaveTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeSaveTest.php
index 4f50fd3..c6ec6ed 100644
--- a/core/modules/node/lib/Drupal/node/Tests/NodeSaveTest.php
+++ b/core/modules/node/lib/Drupal/node/Tests/NodeSaveTest.php
@@ -89,7 +89,6 @@ function testTimestamps() {
 
     // Store the timestamps.
     $created = $node->getCreatedTime();
-    $changed = $node->getChangedTime();
 
     $node->save();
     $node = $this->drupalGetNodeByTitle($edit['title'], TRUE);
diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeTokenReplaceTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeTokenReplaceTest.php
index 0834116..9d9da40 100644
--- a/core/modules/node/lib/Drupal/node/Tests/NodeTokenReplaceTest.php
+++ b/core/modules/node/lib/Drupal/node/Tests/NodeTokenReplaceTest.php
@@ -44,7 +44,6 @@ function testNodeTokenReplacement() {
 
     // Load node so that the body and summary fields are structured properly.
     $node = node_load($node->id());
-    $instance = field_info_instance('node', 'body', $node->getType());
 
     // Generate and test sanitized tokens.
     $tests = array();
@@ -92,7 +91,6 @@ function testNodeTokenReplacement() {
     // Load node (without summary) so that the body and summary fields are
     // structured properly.
     $node = node_load($node->id());
-    $instance = field_info_instance('node', 'body', $node->getType());
 
     // Generate and test sanitized token - use full body as expected value.
     $tests = array();
diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeTypePersistenceTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeTypePersistenceTest.php
index 66ea769..1dd4c96 100644
--- a/core/modules/node/lib/Drupal/node/Tests/NodeTypePersistenceTest.php
+++ b/core/modules/node/lib/Drupal/node/Tests/NodeTypePersistenceTest.php
@@ -29,7 +29,6 @@ function testNodeTypeCustomizationPersistence() {
     $this->drupalLogin($web_user);
     $forum_key = 'modules[Core][forum][enable]';
     $forum_enable = array($forum_key => "1");
-    $forum_disable = array($forum_key => FALSE);
 
     // Enable forum and verify that the node type exists and is not disabled.
     $this->drupalPostForm('admin/modules', $forum_enable, t('Save configuration'));
diff --git a/core/modules/node/node.tokens.inc b/core/modules/node/node.tokens.inc
index 4037d59..82480d1 100644
--- a/core/modules/node/node.tokens.inc
+++ b/core/modules/node/node.tokens.inc
@@ -133,7 +133,6 @@ function node_tokens($type, $tokens, array $data = array(), array $options = arr
           if (($items = $translation->get('body')) && !$items->isEmpty()) {
             $item = $items[0];
             $instance = field_info_instance('node', 'body', $node->getType());
-            $field_langcode = $translation->language()->id;
             // If the summary was requested and is not empty, use it.
             if ($name == 'summary' && !empty($item->summary)) {
               $output = $sanitize ? $item->summary_processed : $item->summary;
