From 4bddd8427664487d1697d6c201a8a5c1fee427d6 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 7 May 2014 03:55:32 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@28339 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/wp-db.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index 2eaf53e2ed..eed2401e4b 100644 --- a/src/wp-includes/wp-db.php +++ b/src/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;