From 0ae6c9708a727e602d7f74628ffb1e7f67e7ab9c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 15 Aug 2020 19:15:38 -0400 Subject: [PATCH] [frio] Remove unused theme functions --- view/theme/frio/theme.php | 48 --------------------------------------- 1 file changed, 48 deletions(-) diff --git a/view/theme/frio/theme.php b/view/theme/frio/theme.php index 687f87401d..e555f7f203 100644 --- a/view/theme/frio/theme.php +++ b/view/theme/frio/theme.php @@ -319,51 +319,3 @@ function frio_display_item(App $a, &$arr) } $arr['output']['subthread'] = $subthread; } - -/** - * @param int|null $uid - * @return string - * @see \Friendica\Core\Theme::getBackgroundColor() - */ -function frio_get_background_color(int $uid = null) -{ - $background_color = DI::config()->get('frio', 'background_color') ?: '#ededed'; - - if ($uid) { - $background_color = DI::pConfig()->get($uid, 'frio', 'background_color') ?: $background_color; - } - - $scheme = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema')); - $scheme = Strings::sanitizeFilePathItem($scheme); - - if ($scheme && ($scheme != '---') && file_exists('view/theme/frio/scheme/' . $scheme . '.php')) { - $schemefile = 'view/theme/frio/scheme/' . $scheme . '.php'; - require_once $schemefile; - } - - return $background_color; -} - -/** - * @param int|null $uid - * @return string - * @see \Friendica\Core\Theme::getThemeColor() - */ -function frio_get_theme_color(int $uid = null) -{ - $nav_bg = DI::config()->get('frio', 'nav_bg') ?: '#708fa0'; - - if ($uid) { - $nav_bg = DI::pConfig()->get($uid, 'frio', 'background_color') ?: $nav_bg; - } - - $scheme = DI::config()->get('frio', 'scheme', DI::config()->get('frio', 'schema')); - $scheme = Strings::sanitizeFilePathItem($scheme); - - if ($scheme && ($scheme != '---') && file_exists('view/theme/frio/scheme/' . $scheme . '.php')) { - $schemefile = 'view/theme/frio/scheme/' . $scheme . '.php'; - require_once $schemefile; - } - - return $nav_bg; -}