diff --git a/core/themes/bartik/bartik.theme b/core/themes/bartik/bartik.theme index 6bdd8e2..b508cb8 100644 --- a/core/themes/bartik/bartik.theme +++ b/core/themes/bartik/bartik.theme @@ -111,23 +111,6 @@ function bartik_process_maintenance_page(&$variables) { } /** - * Implements hook_preprocess_HOOK() for node.html.twig. - */ -function bartik_preprocess_node(&$variables) { - // Operate on a copy of links in order to preserve the original. - $links = $variables['content']['links']; - - // Remove the "Add new comment" link on the teaser page or if the comment - // form is being displayed on the same page. - if ($variables['teaser'] || !empty($variables['content']['comments']['comment_form'])) { - unset($links['comment']['#links']['comment-add']); - } - - // Render links to test if there is content present to display. - $variables['links'] = drupal_render($links); -} - -/** * Implements theme_menu_tree(). */ function bartik_menu_tree($variables) {