From a2160632e0cc8d60817d72c32614a2da3a7f3dc2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 24 Nov 2015 15:28:32 -0500 Subject: [PATCH] CRM-17617 - Remove unused files --- CRM/Utils/Tree.php | 214 ------------------------ templates/CRM/Admin/Form/DomainDump.tpl | 45 ----- templates/CRM/Admin/Page/DomainDump.tpl | 28 ---- 3 files changed, 287 deletions(-) delete mode 100644 CRM/Utils/Tree.php delete mode 100644 templates/CRM/Admin/Form/DomainDump.tpl delete mode 100644 templates/CRM/Admin/Page/DomainDump.tpl diff --git a/CRM/Utils/Tree.php b/CRM/Utils/Tree.php deleted file mode 100644 index 819e7a1487..0000000000 --- a/CRM/Utils/Tree.php +++ /dev/null @@ -1,214 +0,0 @@ -createNode($nodeName); - - // add the root node to the tree - $this->tree['rootNode'] = &$rootNode; - } - - /** - * Find a node that matches the given string. - * - * @param string $name - * Name of the node we are searching for. - * @param array (ref) $parentNode which parent node should we search in ? - * - * @return array(ref) | false node if found else false - */ - public function &findNode($name, &$parentNode) { - // if no parent node specified, please start from root node - if (!$parentNode) { - $parentNode = &$this->tree['rootNode']; - } - - // first check the nodename of subtree itself - if ($parentNode['name'] == $name) { - return $parentNode; - } - - $falseRet = FALSE; - // no children ? return false - if ($this->isLeafNode($node)) { - return $falseRet; - } - - // search children of the subtree - foreach ($parentNode['children'] as $key => $childNode) { - $cNode = &$parentNode['children'][$key]; - if ($node = &$this->findNode($name, $cNode)) { - return $node; - } - } - - // name does not match subtree or any of the children, negative result - return $falseRet; - } - - /** - * Check if node is a leaf node. - * - * Currently leaf nodes are strings and non-leaf nodes are arrays - * - * @param array $node node which needs to checked - * - * @return bool - */ - public function isLeafNode(&$node) { - return (count($node['children']) ? TRUE : FALSE); - } - - /** - * Create a node. - * - * @param string $name - * - * @return array - * (ref) - */ - public function &createNode($name) { - $node['name'] = $name; - $node['children'] = array(); - $node['data'] = array(); - - return $node; - } - - /** - * Add node. - * - * @param string $parentName - * Name of the parent ?. - * @param array (ref) $node - node to be added - */ - public function addNode($parentName, &$node) { - $temp = ''; - $parentNode = &$this->findNode($parentName, $temp); - - $parentNode['children'][] = &$node; - } - - /** - * Add Data. - * - * @param string $parentName Name of the parent ?. - * @param string $childName - key to be used (optional) - * @param mixed $data - data to be added - */ - public function addData($parentName, $childName, $data) { - $temp = ''; - if ($parentNode = &$this->findNode($parentName, $temp)) { - foreach ($parentNode['children'] as $key => $childNode) { - $cNode = &$parentNode['children'][$key]; - if ($cNode = &$this->findNode($childName, $parentNode)) { - $cNode['data']['fKey'] = &$data; - } - } - } - } - - /** - * Get Tree. - * - * @return tree - */ - public function getTree() { - return $this->tree; - } - - /** - * Print the tree. - */ - public function display() { - print_r($this->tree); - } - -} diff --git a/templates/CRM/Admin/Form/DomainDump.tpl b/templates/CRM/Admin/Form/DomainDump.tpl deleted file mode 100644 index ee4cfb304f..0000000000 --- a/templates/CRM/Admin/Form/DomainDump.tpl +++ /dev/null @@ -1,45 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | CiviCRM version 4.7 | - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2015 | - +--------------------------------------------------------------------+ - | This file is a part of CiviCRM. | - | | - | CiviCRM is free software; you can copy, modify, and distribute it | - | under the terms of the GNU Affero General Public License | - | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | - | | - | CiviCRM is distributed in the hope that it will be useful, but | - | WITHOUT ANY WARRANTY; without even the implied warranty of | - | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | - | See the GNU Affero General Public License for more details. | - | | - | You should have received a copy of the GNU Affero General Public | - | License and the CiviCRM Licensing Exception along | - | with this program; if not, contact CiviCRM LLC | - | at info[AT]civicrm[DOT]org. If you have questions about the | - | GNU Affero General Public License or the licensing of CiviCRM, | - | see the CiviCRM license FAQ at http://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} -{* this template is for domain dump (backup data) *} - -
-

{ts}Backup Database{/ts}

-
- -
-
-
{ts}status{/ts}
-
- {ts}Backup Your Data:{/ts} {ts}CiviCRM will create an SQL dump file with all of your existing data, and allow you to download it to your local computer. This process may take a long time and generate a very large file if you have a large number of records.{/ts} {ts}Do you want to continue?{/ts} -
-
-
-
-
-
{$form.buttons.html}
-
-
- diff --git a/templates/CRM/Admin/Page/DomainDump.tpl b/templates/CRM/Admin/Page/DomainDump.tpl deleted file mode 100644 index d942881498..0000000000 --- a/templates/CRM/Admin/Page/DomainDump.tpl +++ /dev/null @@ -1,28 +0,0 @@ -{* - +--------------------------------------------------------------------+ - | CiviCRM version 4.7 | - +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2015 | - +--------------------------------------------------------------------+ - | This file is a part of CiviCRM. | - | | - | CiviCRM is free software; you can copy, modify, and distribute it | - | under the terms of the GNU Affero General Public License | - | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | - | | - | CiviCRM is distributed in the hope that it will be useful, but | - | WITHOUT ANY WARRANTY; without even the implied warranty of | - | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | - | See the GNU Affero General Public License for more details. | - | | - | You should have received a copy of the GNU Affero General Public | - | License and the CiviCRM Licensing Exception along | - | with this program; if not, contact CiviCRM LLC | - | at info[AT]civicrm[DOT]org. If you have questions about the | - | GNU Affero General Public License or the licensing of CiviCRM, | - | see the CiviCRM license FAQ at http://civicrm.org/licensing | - +--------------------------------------------------------------------+ -*} -{* this template is for domain dump (backup data) *} -{include file="CRM/Admin/Form/DomainDump.tpl"} - -- 2.25.1