From 35c345c83b3d0edf37f2559eeb99cecb703e262f Mon Sep 17 00:00:00 2001 From: sunguangming Date: Tue, 26 Dec 2023 17:10:22 +0800 Subject: [PATCH] * Remove useless code. --- module/instance/control.php | 15 ----------- module/instance/model.php | 52 ------------------------------------- 2 files changed, 67 deletions(-) diff --git a/module/instance/control.php b/module/instance/control.php index 2220240464..f354aeae8f 100644 --- a/module/instance/control.php +++ b/module/instance/control.php @@ -366,21 +366,6 @@ class instance extends control return $this->send($response); } - /** - * 自定义安装应用。 - * Install app by custom settings. - * - * @param int $id - * @access public - * @return void - */ - public function customInstall(int $id) - { - // Disable custom installation in version 1.0. - $storeUrl = $this->createLink('store', 'appview', "id=$id"); - return js::execute("window.parent.location.href='{$storeUrl}';"); - } - /** * 安装应用。 * Install app. diff --git a/module/instance/model.php b/module/instance/model.php index d925533ed3..3aa60e0be6 100644 --- a/module/instance/model.php +++ b/module/instance/model.php @@ -1619,58 +1619,6 @@ class InstanceModel extends model return $newList; } - /* - * Get instance switcher. - * - * @param object $instance - * @access public - * @return string - */ - public function getSwitcher($instance) - { - $instanceLink = helper::createLink('instance', 'view', "id=$instance->id"); - - $output = "
"; - $output .= html::a($instanceLink, $instance->appName, '', 'class="btn"'); - $output .= "
"; - - return $output; - } - - /** - * Get switcher of custom installation page of store. - * - * @param object $app - * @access public - * @return array - */ - public function getInstallSwitcher($app) - { - $output = $this->loadModel('store')->getAppViewSwitcher($app); - $output .= "
"; - $output .= html::a(helper::createLink('instance', 'install', "id=$app->id"), $this->lang->instance->installApp, '', 'class="btn"'); - $output .= "
"; - - return $output; - } - - /** - * Get switcher of custom installation page of store. - * - * @param object $app - * @access public - * @return array - */ - public function getCustomInstallSwitcher($app) - { - $output = $this->loadModel('store')->getAppViewSwitcher($app); - $output .= "
"; - $output .= html::a(helper::createLink('instance', 'custominstall', "id=$app->id"), $this->lang->instance->customInstall, '', 'class="btn"'); - $output .= "
"; - - return $output; - } - /** * Get senior app list. The instance can be switched to senior App. *