From 6df032c137b501055f1c86dfc95dc594fe0c6c13 Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Wed, 2 Jun 2021 15:21:53 +0200 Subject: [PATCH] Remove unused methods --- Sccp_manager.class.php | 42 ---------------------------------- sccpManTraits/bmoFunctions.php | 12 ++++++++++ 2 files changed, 12 insertions(+), 42 deletions(-) diff --git a/Sccp_manager.class.php b/Sccp_manager.class.php index ef772c1..dc79cfa 100644 --- a/Sccp_manager.class.php +++ b/Sccp_manager.class.php @@ -495,48 +495,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO { return $this->pagedata; } - public function formShowPage() { - $request = $_REQUEST; - $action = !empty($request['action']) ? $request['action'] : ''; - - if (empty($this->pagedata)) { - //$driver = $this->FreePBX->Config->get_conf_setting('ASTSIPDRIVER'); - $this->pagedata = array( - "general" => array( - "name" => _("SCCP Extension"), - "page" => 'views/extension.page.php' - ) - ); - - $this->pagedata['sccpdevice'] = array( - "name" => _("SCCP Phone"), - "page" => 'views/phone.page.php' - ); - - foreach ($this->pagedata as &$page) { - ob_start(); - include($page['page']); - $page['content'] = ob_get_contents(); - ob_end_clean(); - } - } - - return $this->pagedata; - } - - public function getRightNav($request) { - if (isset($request['tech_hardware']) && ($request['tech_hardware'] == 'cisco')) { - return load_view(__DIR__ . "/views/hardware.rnav.php", array('request' => $request)); - } - } - - public function doGeneralPost() { - // $this->FreePBX->WriteConfig($config); - if (!isset($_REQUEST['Submit'])) { - return; - } - } - /* * * * Save Hardware Device Information to Db + ???? Create / update XML Profile diff --git a/sccpManTraits/bmoFunctions.php b/sccpManTraits/bmoFunctions.php index 29e7c36..c703810 100644 --- a/sccpManTraits/bmoFunctions.php +++ b/sccpManTraits/bmoFunctions.php @@ -106,5 +106,17 @@ trait bmoFunctions { } return $buttons; } + + public function getRightNav($request) { + if (isset($request['tech_hardware']) && ($request['tech_hardware'] == 'cisco')) { + return load_view(__DIR__ . "/views/hardware.rnav.php", array('request' => $request)); + } + } + + public function doGeneralPost() { + if (!isset($_REQUEST['Submit'])) { + return; + } + } } ?>