From 9ec473c2006c0d64cb987ff7cdd70690ffd7363e Mon Sep 17 00:00:00 2001 From: Darren Oh <2293701+darrenoh@users.noreply.github.com> Date: Tue, 14 Nov 2023 10:33:50 -0500 Subject: [PATCH] Remove leftover code --- src/Theme/HookPreprocess.php | 1 - src/functions/theme.php | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/Theme/HookPreprocess.php b/src/Theme/HookPreprocess.php index dc68b82..2aa0a27 100644 --- a/src/Theme/HookPreprocess.php +++ b/src/Theme/HookPreprocess.php @@ -87,7 +87,6 @@ public static function links(array &$variables): void $variables['heading']['attributes']['class'] = $variables['heading']['class']; unset($variables['heading']['class']); } - $links['#heading'] = $variables['heading']; } } } diff --git a/src/functions/theme.php b/src/functions/theme.php index 9220631..650d1ef 100644 --- a/src/functions/theme.php +++ b/src/functions/theme.php @@ -26,9 +26,6 @@ function list_themes(bool $refresh = false): array function theme(string $hook, array $variables = []): MarkupInterface|string { $build['#theme'] = $hook; - if (function_exists('retrofit_preprocess_' . $hook)) { - ('retrofit_preprocess_' . $hook)($variables); - } foreach ($variables as $key => $variable) { $build["#$key"] = $variable; }