From: Michael Rasmussen Date: Sun, 14 Sep 2014 20:16:21 +0000 (+0200) Subject: remove method which is final in extended method X-Git-Url: http://git.datanom.net/omvzfs.git/commitdiff_plain/800ebb7608f963509a7648ca898e6716829fb5e6 remove method which is final in extended method --- diff --git a/src/NotifyListener.php b/src/NotifyListener.php index 5f55bd0..42c4fce 100644 --- a/src/NotifyListener.php +++ b/src/NotifyListener.php @@ -42,6 +42,7 @@ class OMVModuleZFS extends OMVModuleAbstract OMV_NOTIFY_MODIFY, "org.openmediavault.services.nfs.shares.share", array($this, "onUpdateNFSShare")); + $this->debug(sprintf("bindListeners %s", var_export($dispatcher, true))); } /** @@ -88,25 +89,6 @@ class OMVModuleZFS extends OMVModuleAbstract $this->debug(sprintf("onUpdateNFSShare args=%s", var_export($args, true))); } - /** - * Helper function to execute a command and throw an exception on error - * (requires stderr redirected to stdout for proper exception message). - * - * @param string $cmd Command to execute - * @param array &$out If provided will contain output in an array - * @param int &$res If provided will contain Exit status of the command - * @return string Last line of output when executing the command - * @throws OMVModuleZFSException - * @access public - */ - private function exec($cmd, &$out = null, &$res = null) { - $tmp = OMVUtil::exec($cmd, $out, $res); - if ($res) { - throw new OMVModuleZFSException(implode("\n", $out)); - } - return $tmp; - } - private function updatePools() { }