From b7ab595e30618937310f321b8a61ae284ea6b82f Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 10 Jun 2017 18:24:22 +0200 Subject: [PATCH] baculum: Tweak remove unused api get methods --- gui/baculum/protected/API/Pages/API/BVFSClearCache.php | 2 -- gui/baculum/protected/API/Pages/API/BVFSLsDirs.php | 2 -- gui/baculum/protected/API/Pages/API/BVFSLsFiles.php | 2 -- gui/baculum/protected/API/Pages/API/BVFSRestore.php | 2 -- gui/baculum/protected/API/Pages/API/BVFSUpdate.php | 2 -- gui/baculum/protected/API/Pages/API/ConfigDirTest.php | 2 -- gui/baculum/protected/API/Pages/API/ConsoleCommand.php | 2 -- gui/baculum/protected/API/Pages/API/JSONToolsTest.php | 2 -- gui/baculum/protected/API/Pages/API/JobCancel.php | 2 -- gui/baculum/protected/API/Pages/API/PoolUpdate.php | 3 +-- gui/baculum/protected/API/Pages/API/PoolUpdateVolumes.php | 1 - gui/baculum/protected/API/Pages/API/RestoreRun.php | 2 -- 12 files changed, 1 insertion(+), 23 deletions(-) diff --git a/gui/baculum/protected/API/Pages/API/BVFSClearCache.php b/gui/baculum/protected/API/Pages/API/BVFSClearCache.php index 560b895d9c..4f8da7f609 100644 --- a/gui/baculum/protected/API/Pages/API/BVFSClearCache.php +++ b/gui/baculum/protected/API/Pages/API/BVFSClearCache.php @@ -22,8 +22,6 @@ class BVFSClearCache extends BaculumAPIServer { - public function get() {} - public function set($ids, $params) { $result = $this->getModule('bconsole')->bconsoleCommand($this->director, array('.bvfs_clear_cache', 'yes'), $this->user); $this->output = $result->output; diff --git a/gui/baculum/protected/API/Pages/API/BVFSLsDirs.php b/gui/baculum/protected/API/Pages/API/BVFSLsDirs.php index 4baca60571..b4a1c7c2c7 100644 --- a/gui/baculum/protected/API/Pages/API/BVFSLsDirs.php +++ b/gui/baculum/protected/API/Pages/API/BVFSLsDirs.php @@ -22,8 +22,6 @@ class BVFSLsDirs extends BaculumAPIServer { - public function get() {} - public function set($param, $ids) { $limit = intval($this->Request['limit']); $offset = intval($this->Request['offset']); diff --git a/gui/baculum/protected/API/Pages/API/BVFSLsFiles.php b/gui/baculum/protected/API/Pages/API/BVFSLsFiles.php index 630bf8eaff..86e63fca6a 100644 --- a/gui/baculum/protected/API/Pages/API/BVFSLsFiles.php +++ b/gui/baculum/protected/API/Pages/API/BVFSLsFiles.php @@ -22,8 +22,6 @@ class BVFSLsFiles extends BaculumAPIServer { - public function get() {} - public function set($param, $ids) { $limit = intval($this->Request['limit']); $offset = intval($this->Request['offset']); diff --git a/gui/baculum/protected/API/Pages/API/BVFSRestore.php b/gui/baculum/protected/API/Pages/API/BVFSRestore.php index 0d16ce1d19..73eaa66e78 100644 --- a/gui/baculum/protected/API/Pages/API/BVFSRestore.php +++ b/gui/baculum/protected/API/Pages/API/BVFSRestore.php @@ -21,8 +21,6 @@ */ class BVFSRestore extends BaculumAPIServer { - public function get() {} - public function create($params) { $jobids = property_exists($params, 'jobids') ? $params->jobids : null; $fileids = property_exists($params, 'fileid') ? $params->fileid : null; diff --git a/gui/baculum/protected/API/Pages/API/BVFSUpdate.php b/gui/baculum/protected/API/Pages/API/BVFSUpdate.php index 5c2bda2226..760bbb66ff 100644 --- a/gui/baculum/protected/API/Pages/API/BVFSUpdate.php +++ b/gui/baculum/protected/API/Pages/API/BVFSUpdate.php @@ -22,8 +22,6 @@ class BVFSUpdate extends BaculumAPIServer { - public function get() {} - public function set($param, $ids) { $isValid = true; if (property_exists($ids, 'jobids')) { diff --git a/gui/baculum/protected/API/Pages/API/ConfigDirTest.php b/gui/baculum/protected/API/Pages/API/ConfigDirTest.php index 863a825cb0..f749e57d8d 100644 --- a/gui/baculum/protected/API/Pages/API/ConfigDirTest.php +++ b/gui/baculum/protected/API/Pages/API/ConfigDirTest.php @@ -22,8 +22,6 @@ class ConfigDirTest extends BaculumAPIServer { - public function get() {} - public function set($id, $params) { $config_dir = property_exists($params, 'path') ? $params->path : ''; $result = $this->getModule('bacula_config')->testConfigDir($config_dir); diff --git a/gui/baculum/protected/API/Pages/API/ConsoleCommand.php b/gui/baculum/protected/API/Pages/API/ConsoleCommand.php index 96c4b390e5..d76432e1b2 100644 --- a/gui/baculum/protected/API/Pages/API/ConsoleCommand.php +++ b/gui/baculum/protected/API/Pages/API/ConsoleCommand.php @@ -22,8 +22,6 @@ class ConsoleCommand extends BaculumAPIServer { - public function get() {} - public function set($id, $params) { $params = (array)$params; $console = $this->getModule('bconsole')->bconsoleCommand($this->director, $params, $this->user); diff --git a/gui/baculum/protected/API/Pages/API/JSONToolsTest.php b/gui/baculum/protected/API/Pages/API/JSONToolsTest.php index f91f121106..f114359ec5 100644 --- a/gui/baculum/protected/API/Pages/API/JSONToolsTest.php +++ b/gui/baculum/protected/API/Pages/API/JSONToolsTest.php @@ -22,8 +22,6 @@ class JSONToolsTest extends BaculumAPIServer { - public function get() {} - public function set($id, $params) { $type = property_exists($params, 'type') ? $params->type : ''; $path = property_exists($params, 'path') ? $params->path : ''; diff --git a/gui/baculum/protected/API/Pages/API/JobCancel.php b/gui/baculum/protected/API/Pages/API/JobCancel.php index 53e48e0a0a..a3d344d731 100644 --- a/gui/baculum/protected/API/Pages/API/JobCancel.php +++ b/gui/baculum/protected/API/Pages/API/JobCancel.php @@ -22,8 +22,6 @@ class JobCancel extends BaculumAPIServer { - public function get() {} - public function set($id, $params) { $jobid = intval($id); $job = $this->getModule('job')->getJobById($jobid); diff --git a/gui/baculum/protected/API/Pages/API/PoolUpdate.php b/gui/baculum/protected/API/Pages/API/PoolUpdate.php index 85e08e5316..394f82ad74 100644 --- a/gui/baculum/protected/API/Pages/API/PoolUpdate.php +++ b/gui/baculum/protected/API/Pages/API/PoolUpdate.php @@ -21,7 +21,6 @@ */ class PoolUpdate extends BaculumAPIServer { - public function get() {} public function set($id, $params) { $pool = $this->getModule('pool')->getPoolById($id); @@ -36,4 +35,4 @@ class PoolUpdate extends BaculumAPIServer { } } -?> \ No newline at end of file +?> diff --git a/gui/baculum/protected/API/Pages/API/PoolUpdateVolumes.php b/gui/baculum/protected/API/Pages/API/PoolUpdateVolumes.php index c616ba43ce..d18a52721c 100644 --- a/gui/baculum/protected/API/Pages/API/PoolUpdateVolumes.php +++ b/gui/baculum/protected/API/Pages/API/PoolUpdateVolumes.php @@ -21,7 +21,6 @@ */ class PoolUpdateVolumes extends BaculumAPIServer { - public function get() {} public function set($id, $params) { $pool = $this->getModule('pool')->getPoolById($id); diff --git a/gui/baculum/protected/API/Pages/API/RestoreRun.php b/gui/baculum/protected/API/Pages/API/RestoreRun.php index f7ed970515..a60e627c0b 100644 --- a/gui/baculum/protected/API/Pages/API/RestoreRun.php +++ b/gui/baculum/protected/API/Pages/API/RestoreRun.php @@ -24,8 +24,6 @@ Prado::using('Application.API.Class.APIDbModule'); class RestoreRun extends BaculumAPIServer { - public function get() {} - public function create($params) { $rfile = property_exists($params, 'rpath') ? $params->rpath : null; -- 2.39.5