From 361e3e1ee6835f58882a53e7ce4bde2459d12975 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 7 May 2014 03:56:14 +0000 Subject: [PATCH] In `wpdb`, remove dead code: * In `->tables()`, `break` is unreachable after `return` * In `->query()`, `$return` is always set, so doesn't need an initial value of `0` * In `->delete()`, `$bits` is unused See #27882. Built from https://develop.svn.wordpress.org/trunk@28339 git-svn-id: http://core.svn.wordpress.org/trunk@28167 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 2eaf53e2ed..eed2401e4b 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -932,7 +932,6 @@ class wpdb { break; default : return array(); - break; } if ( $prefix ) { @@ -1514,7 +1513,6 @@ class wpdb { */ $query = apply_filters( 'query', $query ); - $return_val = 0; $this->flush(); // Log how the function was called @@ -1786,7 +1784,7 @@ class wpdb { if ( ! is_array( $where ) ) return false; - $bits = $wheres = array(); + $wheres = array(); $where_formats = $where_format = (array) $where_format;