summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2022-04-07 17:30:21 +0200
committerHarald Eilertsen <haraldei@anduin.net>2022-04-07 17:30:21 +0200
commitee38db493b1a6ee9bd1e04c94362474962688c8b (patch)
tree835e6477c3c53c8d964358dcf3c437f19cfd4e1a
parent472b26838b26d7e869b6d70e5a77214b2e06477f (diff)
downloadgigologadmin-ee38db493b1a6ee9bd1e04c94362474962688c8b.tar.gz
gigologadmin-ee38db493b1a6ee9bd1e04c94362474962688c8b.tar.bz2
gigologadmin-ee38db493b1a6ee9bd1e04c94362474962688c8b.zip
Remove unused code, and fix some type annotation.
-rw-r--r--includes/concert.php17
1 files changed, 1 insertions, 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;