From 013f6547d836ddb7b2f75eb2b49b607829a2e87b Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 20 Aug 2013 07:38:31 -0700 Subject: [PATCH] This method has been replaced by a helper util of the same functionality --- php/WP_CLI/CommandWithDBObject.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/php/WP_CLI/CommandWithDBObject.php b/php/WP_CLI/CommandWithDBObject.php index 083b0687..7978ce37 100644 --- a/php/WP_CLI/CommandWithDBObject.php +++ b/php/WP_CLI/CommandWithDBObject.php @@ -68,23 +68,6 @@ abstract class CommandWithDBObject extends \WP_CLI_Command { return $status; } - protected function assoc_array_to_table( $fields ) { - $rows = array(); - - foreach ( $fields as $field => $value ) { - if ( !is_string($value) ) { - $value = json_encode( $value ); - } - - $rows[] = (object) array( - 'Field' => $field, - 'Value' => $value - ); - } - - \WP_CLI\Utils\format_items( 'table', $rows, array( 'Field', 'Value' ) ); - } - public function delete( $args, $assoc_args ) { $status = 0; -- 2.11.0