diff --git a/core/modules/views/views.tokens.inc b/core/modules/views/views.tokens.inc
index ae307fd..91a53c6 100644
--- a/core/modules/views/views.tokens.inc
+++ b/core/modules/views/views.tokens.inc
@@ -74,7 +74,6 @@ function views_tokens($type, $tokens, array $data = array(), array $options = ar
     $url_options['language'] = $options['language'];
   }
   $sanitize = !empty($options['sanitize']);
-  $langcode = isset($options['language']) ? $options['language']->id : NULL;
 
   $replacements = array();
 
