WordPress.org

Make WordPress Core

Changeset 28339


Ignore:
Timestamp:
05/07/2014 03:55:32 AM (7 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/wp-db.php

    r28243 r28339  
    933933            default :
    934934                return array();
    935                 break;
    936935        }
    937936
     
    15151514        $query = apply_filters( 'query', $query );
    15161515
    1517         $return_val = 0;
    15181516        $this->flush();
    15191517
     
    17871785            return false;
    17881786
    1789         $bits = $wheres = array();
     1787        $wheres = array();
    17901788
    17911789        $where_formats = $where_format = (array) $where_format;
Note: See TracChangeset for help on using the changeset viewer.