From 9f7d71b804c37dae02d506a975d970933a8369b9 Mon Sep 17 00:00:00 2001 From: nanaya Date: Tue, 14 Nov 2023 20:16:46 +0900 Subject: [PATCH] Remove unused transformer includes --- app/Transformers/CountryTransformer.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/app/Transformers/CountryTransformer.php b/app/Transformers/CountryTransformer.php index 6c19cb1f7b8..3680bce5ec6 100644 --- a/app/Transformers/CountryTransformer.php +++ b/app/Transformers/CountryTransformer.php @@ -9,11 +9,6 @@ class CountryTransformer extends TransformerAbstract { - protected array $availableIncludes = [ - 'display', - 'ranking', - ]; - public function transform(Country $country) { return [ @@ -21,19 +16,4 @@ public function transform(Country $country) 'name' => $country->name, ]; } - - public function includeDisplay(Country $country) - { - return $this->primitive($country->display); - } - - public function includeRanking(Country $country) - { - return $this->primitive([ - 'active_users' => $country->usercount, - 'play_count' => $country->playcount, - 'ranked_score' => $country->rankedscore, - 'performance' => $country->pp, - ]); - } }