From 0315f90a390f10ffe4bb50c0941a36e94e38ba11 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 10 Sep 2019 16:33:32 -0700 Subject: [PATCH] (REF) Remove unused function CRM_Core_Block::setTemplateMenuValues Note that this is a `private` function, so any hypothetical callers must be in the same class. There don't appear to be any. Could there be some dynamic method calls? Well, you'd expect there to be some tell-tale such as references to `call_*()` or to a string which builds up that method name from smaller strings ("set" or "MenuValues" or similar). Nothing comes up. --- CRM/Core/Block.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/CRM/Core/Block.php b/CRM/Core/Block.php index a34bf4da64..a3bb87f076 100644 --- a/CRM/Core/Block.php +++ b/CRM/Core/Block.php @@ -530,19 +530,6 @@ class CRM_Core_Block { self::setProperty(self::MAIL, 'templateValues', array('shortCuts' => $values)); } - /** - * Create the list of shortcuts for the application and format is as a block. - */ - private static function setTemplateMenuValues() { - $config = CRM_Core_Config::singleton(); - - $path = 'navigation'; - $values = CRM_Core_Menu::getNavigation(); - if ($values) { - self::setProperty(self::MENU, 'templateValues', array('menu' => $values)); - } - } - /** * Create the event blocks for upcoming events. */ -- 2.25.1