From 1726c5b03bd7e051269e59311fd93f141e53c5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Tue, 21 Feb 2017 11:44:32 +0100 Subject: [PATCH] Removed unused method --- .../class_password-methods.inc | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/include/password-methods/class_password-methods.inc b/include/password-methods/class_password-methods.inc index f011b906e..196dbe2b8 100644 --- a/include/password-methods/class_password-methods.inc +++ b/include/password-methods/class_password-methods.inc @@ -382,37 +382,5 @@ class passwordMethod return TRUE; } - - /*! - * \brief Get the password proposal - */ - static function getPasswordProposal() - { - global $config; - if ($config->get_cfg_value('passwordProposalHook', '') != '') { - $command = $config->get_cfg_value('passwordProposalHook', ''); - if (check_command($command)) { - @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execute"); - exec($command, $arr, $returnCode); - - if ($returnCode != 0) { - $str = implode("\n", $arr); - @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Execution failed code: ".$returnCode); - $message = msgPool::cmdexecfailed($cmd, $command, get_class($plugin)); - msg_dialog::display(_("Error"), $message, ERROR_DIALOG); - } elseif (is_array($arr)) { - $str = implode("\n", $arr); - @DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__, $command, "Result: ".$str); - if (count($arr) && !empty($arr[0])) { - return $arr[0]; - } - } - } else { - $message = msgPool::cmdinvalid($cmd, $command, get_class($plugin)); - msg_dialog::display(_("Error"), $message, ERROR_DIALOG); - } - } - return ''; - } } ?> -- GitLab