OSDN Git Service

help: remove unused find() utility
authorscribu <mail@scribu.net>
Sun, 4 Aug 2013 18:55:12 +0000 (21:55 +0300)
committerscribu <mail@scribu.net>
Sun, 4 Aug 2013 18:55:12 +0000 (21:55 +0300)
php/commands/help.php

index e2c28ae..6e90600 100644 (file)
@@ -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 ) );