From: Coleman Watts Date: Mon, 7 Dec 2015 02:38:43 +0000 (-0500) Subject: Remove redundant fn X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=42b0f63f3b5f9b60f2dc71b5808df76b115a6959;p=civicrm-core.git Remove redundant fn --- diff --git a/CRM/Upgrade/Incremental/php/FourFour.php b/CRM/Upgrade/Incremental/php/FourFour.php index 1a1a95f865..73399f6e67 100644 --- a/CRM/Upgrade/Incremental/php/FourFour.php +++ b/CRM/Upgrade/Incremental/php/FourFour.php @@ -696,32 +696,6 @@ CREATE TABLE IF NOT EXISTS `civicrm_word_replacement` ( return TRUE; } - /** - * Syntactic sugar for adding a task which (a) is in this class and (b) has a high priority. - * - * After passing the $funcName, you can also pass parameters that will go to - * the function. Note that all params must be serializable. - * - * @param string $title - * @param string $funcName - */ - protected function addTask($title, $funcName) { - $queue = CRM_Queue_Service::singleton()->load(array( - 'type' => 'Sql', - 'name' => CRM_Upgrade_Form::QUEUE_NAME, - )); - - $args = func_get_args(); - $title = array_shift($args); - $funcName = array_shift($args); - $task = new CRM_Queue_Task( - array(get_class($this), $funcName), - $args, - $title - ); - $queue->createItem($task, array('weight' => -1)); - } - /** * Get all the word-replacements stored in config-arrays * and convert them to params for the WordReplacement.create API.