OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
453eff2
)
help: remove unused find() utility
author
scribu
<mail@scribu.net>
Sun, 4 Aug 2013 18:55:12 +0000
(21:55 +0300)
committer
scribu
<mail@scribu.net>
Sun, 4 Aug 2013 18:55:12 +0000
(21:55 +0300)
php/commands/help.php
patch
|
blob
|
history
diff --git
a/php/commands/help.php
b/php/commands/help.php
index
e2c28ae
..
6e90600
100644
(file)
--- a/
php/commands/help.php
+++ b/
php/commands/help.php
@@
-82,15
+82,6
@@
class Help_Command extends WP_CLI_Command {
return proc_close( proc_open( 'less -r', $descriptorspec, $pipes ) );
}
- private static function find( $candidates, $callback ) {
- foreach ( $candidates as $candidate ) {
- if ( call_user_func( $callback, $candidate ) )
- return $candidate;
- }
-
- return false;
- }
-
private static function get_initial_markdown( $command ) {
$name = implode( ' ', Dispatcher\get_path( $command ) );