From ee38db493b1a6ee9bd1e04c94362474962688c8b Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 7 Apr 2022 17:30:21 +0200 Subject: Remove unused code, and fix some type annotation. --- includes/concert.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/includes/concert.php b/includes/concert.php index 100861e..162291d 100644 --- a/includes/concert.php +++ b/includes/concert.php @@ -160,22 +160,7 @@ if ( !class_exists('GiglogAdmin_Concert') ) { return $need_update; } - // Table to translate from filter keys to db columns used by - // find_Concerts - private function translate_key($key) : string - { - return [ - 'id' => 'id', - 'name' => 'wpgconcert_name', - 'date' => 'wpgconcert_date', - 'venue_id' => $wpdb->prefix . 'giglogadmin_venues.id', - 'venue' => $wpdb->prefix . 'giglogadmin_venues.wpgvenue_name', - 'city' => $wpdb->prefix . 'giglogadmin_venues.wpgvenue_city', - 'currentuser' => 'wpgconcert_roles', - ][$key]; - } - - private static function _build_query(array $filter = [], $count = false) : string + private static function _build_query(array $filter = [], bool $count = false) : string { global $wpdb; -- cgit v1.2.3