Skip to content

Commit

Permalink
Removing unused methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 20, 2010
1 parent 4e44ff9 commit 78e76a2
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions cake/console/libs/console_option_parser.php
Expand Up @@ -483,27 +483,6 @@ public function help($subcommand = null, $width = 72) {
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.
Expand Down Expand Up @@ -605,16 +584,4 @@ protected function _nextToken() {
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;
}
}

0 comments on commit 78e76a2

Please sign in to comment.