diff --git a/core/modules/content_translation/content_translation.module b/core/modules/content_translation/content_translation.module
index 70d20dc..89659d8 100644
--- a/core/modules/content_translation/content_translation.module
+++ b/core/modules/content_translation/content_translation.module
@@ -198,7 +198,6 @@ function content_translation_menu() {
     // Provide the translation UI only for enabled types.
     if (content_translation_enabled($entity_type)) {
       $path = _content_translation_link_to_router_path($entity_type, $info->getLinkTemplate('canonical'));
-      $entity_position = count(explode('/', $path)) - 1;
       $keys = array_flip(array('load_arguments'));
       $translation = $info->get('translation');
       $menu_info = array_intersect_key($translation['content_translation'], $keys) + array('file' => 'content_translation.pages.inc');
@@ -213,8 +212,6 @@ function content_translation_menu() {
       // Add translation callback.
       // @todo Add the access callback instead of replacing it as soon as the
       // routing system supports multiple callbacks.
-      $language_position = $entity_position + 3;
-      $args = array($entity_position, $language_position, $language_position + 1);
       $items["$path/translations/add/%language/%language"] = array(
         'title' => 'Add',
         'route_name' => "content_translation.translation_add_$entity_type",
@@ -222,7 +219,6 @@ function content_translation_menu() {
       );
 
       // Edit translation callback.
-      $args = array($entity_position, $language_position);
       $items["$path/translations/edit/%language"] = array(
         'title' => 'Edit',
         'route_name' => "content_translation.translation_edit_$entity_type",
