1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-07-29 22:41:11 +03:00

postfixadmin-cli: get rid of empty/unused initialize()

This commit is contained in:
Christian Boltz
2018-03-25 21:34:26 +02:00
parent 36fe1f6ccc
commit 48a3709041
2 changed files with 1 additions and 12 deletions

View File

@ -210,8 +210,6 @@ class PostfixAdmin {
# TODO: add a way to Cli* to signal if the selected handler is supported (for example, not all *Handler support changing the password) # TODO: add a way to Cli* to signal if the selected handler is supported (for example, not all *Handler support changing the password)
if (strtolower(get_parent_class($shell)) == 'shell') { if (strtolower(get_parent_class($shell)) == 'shell') {
$shell->initialize();
$handler = new $shell->handler_to_use; $handler = new $shell->handler_to_use;
if (in_array($task, $handler->taskNames)) { if (in_array($task, $handler->taskNames)) {
$this->shiftArgs(); $this->shiftArgs();
@ -243,7 +241,7 @@ class PostfixAdmin {
} }
$protectedCommands = array( $protectedCommands = array(
'initialize', 'in', 'out', 'err', 'hr', 'log', 'in', 'out', 'err', 'hr', 'log',
'__construct', 'dispatch', 'stdout', 'stderr' '__construct', 'dispatch', 'stdout', 'stderr'
); );

View File

@ -110,15 +110,6 @@ class Shell {
$this->Dispatch =& $dispatch; $this->Dispatch =& $dispatch;
} }
/**
* Initializes the Shell
* acts as constructor for subclasses
* allows configuration of tasks prior to shell execution
*
* @access public
*/
public function initialize() {
}
/** /**
* Starts up the the Shell * Starts up the the Shell
* allows for checking and configuring prior to command or main execution * allows for checking and configuring prior to command or main execution