From 78e76a2f9e8e7cd1abdb239fa7b09eed1317811a Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 19 Oct 2010 21:31:55 -0400 Subject: [PATCH] Removing unused methods. --- cake/console/libs/console_option_parser.php | 33 --------------------- 1 file changed, 33 deletions(-) diff --git a/cake/console/libs/console_option_parser.php b/cake/console/libs/console_option_parser.php index 887e9aee7..9fc2afa84 100644 --- a/cake/console/libs/console_option_parser.php +++ b/cake/console/libs/console_option_parser.php @@ -483,27 +483,6 @@ class ConsoleOptionParser { return $formatter->text($width); } -/** - * Generate the usage for a shell based on its arguments and options. - * Usage strings favour short options over the long ones. and optional args will - * be indicated with [] - * - * @return string - */ - protected function _generateUsage() { - $usage = array('cake ' . $this->_command); - if (!empty($this->_subcommands)) { - $usage[] = '[subcommand]'; - } - foreach ($this->_options as $option) { - $usage[] = $option->usage(); - } - foreach ($this->_args as $argument) { - $usage[] = $argument->usage(); - } - return implode(' ', $usage); - } - /** * Parse the value for a long option out of $this->_tokens. Will handle * options with an `=` in them. @@ -605,16 +584,4 @@ class ConsoleOptionParser { return isset($this->_tokens[0]) ? $this->_tokens[0] : ''; } -/** - * Iterate over a collection and find the longest named thing. - * - * @return integer - */ - protected function _getMaxLength($collection) { - $max = 0; - foreach ($collection as $item) { - $max = (strlen($item->name()) > $max) ? strlen($item->name()) : $max; - } - return $max; - } }