Skip to content

Commit

Permalink
Removed obsolete and unlinked "owners" rankings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Mar 18, 2024
1 parent d6237d6 commit 3172ba9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 76 deletions.
30 changes: 0 additions & 30 deletions src/Ranking/Impl/OwnersOldRanking.php

This file was deleted.

30 changes: 0 additions & 30 deletions src/Ranking/Impl/OwnersRanking.php

This file was deleted.

15 changes: 4 additions & 11 deletions src/Ranking/PageContainerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use ScriptFUSION\Steam250\SiteGenerator\Page\StaticPageName;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\AnnualRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\EarlyAccessRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\OwnersRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\ReviewsRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\TagRanking;
use ScriptFUSION\Steam250\SiteGenerator\Tag\Tag;
Expand All @@ -35,13 +34,6 @@ public function create(Container $parent): Container
$container->set($ranking->getId(), $ranking);
++$counter;

// Owners data is no longer current, so only show historical rankings.
if ($year <= 2017) {
$ranking = new OwnersRanking($dependencies, $year);
$container->set($ranking->getId(), $ranking);
++$counter;
}

$ranking = new ReviewsRanking($dependencies, $year);
$container->set($ranking->getId(), $ranking);
++$counter;
Expand All @@ -57,9 +49,10 @@ public function create(Container $parent): Container
}

// Replace Early Access tag using special-cased implementation.
$container->set(Tag::convertTagToId(EarlyAccessRanking::TAG), static function () use ($parent): Ranking {
return new EarlyAccessRanking($parent->get(RankingDependencies::class));
});
$container->set(
Tag::convertTagToId(EarlyAccessRanking::TAG),
fn () => new EarlyAccessRanking($parent->get(RankingDependencies::class))
);

$container->set(
'home',
Expand Down
5 changes: 0 additions & 5 deletions src/Ranking/RankingName.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\AdultRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\Bottom100Ranking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\BuyersRemorseRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\Club250Ranking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\CollageRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\DeveloperRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\DiscountRanking;
Expand All @@ -18,7 +17,6 @@
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\Mac250Ranking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\MostPlayedRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\OldRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\OwnersOldRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\PublisherRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\ReviewsFullRanking;
use ScriptFUSION\Steam250\SiteGenerator\Ranking\Impl\ReviewsOldRanking;
Expand Down Expand Up @@ -53,7 +51,6 @@ final class RankingName extends AbstractEnumeration
public const D_90 = 'D_90';
public const D_365 = 'D_365';
public const OLD = 'OLD';
public const OLD_OWN = 'OLD_OWN';
public const REVIEW = 'REVIEW';
public const OLD_REVIEW = 'OLD_REVIEW';
public const MAC = 'MAC';
Expand Down Expand Up @@ -86,7 +83,6 @@ final class RankingName extends AbstractEnumeration
self::D_90 => RollingQuarterRanking::class,
self::D_365 => RollingYearRanking::class,
self::OLD => OldRanking::class,
self::OLD_OWN => OwnersOldRanking::class,
self::REVIEW => ReviewsFullRanking::class,
self::OLD_REVIEW => ReviewsOldRanking::class,
self::MAC => Mac250Ranking::class,
Expand Down Expand Up @@ -120,7 +116,6 @@ final class RankingName extends AbstractEnumeration
self::D_90 => '90d',
self::D_365 => '365d',
self::OLD => 'old',
self::OLD_OWN => 'oold',
self::REVIEW => 'review',
self::OLD_REVIEW => 'rold',
self::MAC => 'mac',
Expand Down

0 comments on commit 3172ba9

Please sign in to comment.