From: Marcin Haba Date: Sat, 2 Dec 2017 14:51:53 +0000 (+0100) Subject: baculum: Remove unused api endpoints X-Git-Tag: Release-9.0.7~19 X-Git-Url: https://git.sur5r.net/?p=bacula%2Fbacula;a=commitdiff_plain;h=13e5c52d60535f88b582ca2faee01faed365f9a2 baculum: Remove unused api endpoints --- diff --git a/gui/baculum/protected/API/Class/BaculaSetting.php b/gui/baculum/protected/API/Class/BaculaSetting.php index e5df83a30a..7e7179c112 100644 --- a/gui/baculum/protected/API/Class/BaculaSetting.php +++ b/gui/baculum/protected/API/Class/BaculaSetting.php @@ -487,12 +487,6 @@ class BaculaSetting extends APIModule { } return $tool_type; } - - // REMOVE ??? - public function testConfigDir($path) { - $valid = is_writable($path); - return $valid; - } } function overwrite_directives_callback($directive_name, $directive_value) { $directive = ''; diff --git a/gui/baculum/protected/API/Pages/API/ConfigDirTest.php b/gui/baculum/protected/API/Pages/API/ConfigDirTest.php deleted file mode 100644 index f749e57d8d..0000000000 --- a/gui/baculum/protected/API/Pages/API/ConfigDirTest.php +++ /dev/null @@ -1,36 +0,0 @@ -path : ''; - $result = $this->getModule('bacula_config')->testConfigDir($config_dir); - if ($result === true) { - $this->output = BaculaConfigError::MSG_ERROR_NO_ERRORS; - $this->error = BaculaConfigError::ERROR_NO_ERRORS; - } else { - $this->output = BaculaConfigError::MSG_ERROR_CONFIG_DIR_NOT_WRITABLE; - $this->error = BaculaConfigError::ERROR_CONFIG_DIR_NOT_WRITABLE; - } - } -} diff --git a/gui/baculum/protected/API/Pages/API/JSONToolsTest.php b/gui/baculum/protected/API/Pages/API/JSONToolsTest.php deleted file mode 100644 index f114359ec5..0000000000 --- a/gui/baculum/protected/API/Pages/API/JSONToolsTest.php +++ /dev/null @@ -1,40 +0,0 @@ -type : ''; - $path = property_exists($params, 'path') ? $params->path : ''; - $cfg = property_exists($params, 'cfg') ? $params->cfg : ''; - $use_sudo = property_exists($params, 'use_sudo') ? $params->use_sudo : false; - $result = $this->getModule('json_tools')->testJSONTool($type, $path, $cfg, $use_sudo); - if ($result === true) { - $this->output = JSONToolsError::MSG_ERROR_NO_ERRORS; - $this->error = JSONToolsError::ERROR_NO_ERRORS; - } else { - $this->output = JSONToolsError::MSG_ERROR_JSON_TOOLS_CONNECTION_PROBLEM; - $this->error = JSONToolsError::ERROR_JSON_TOOLS_CONNECTION_PROBLEM; - } - } -} -?> diff --git a/gui/baculum/protected/API/Pages/API/VolumesPools.php b/gui/baculum/protected/API/Pages/API/VolumesPools.php deleted file mode 100644 index 1db7e16921..0000000000 --- a/gui/baculum/protected/API/Pages/API/VolumesPools.php +++ /dev/null @@ -1,31 +0,0 @@ -Request['limit']); - $volumes = $this->getModule('volume')->getVolumes($limit, true); - $this->output = $volumes; - $this->error = VolumeError::ERROR_NO_ERRORS; - } -} -?> diff --git a/gui/baculum/protected/API/endpoints.xml b/gui/baculum/protected/API/endpoints.xml index 81bcfed0ed..a4f3a35ed7 100644 --- a/gui/baculum/protected/API/endpoints.xml +++ b/gui/baculum/protected/API/endpoints.xml @@ -87,8 +87,6 @@ - -