Skip to content

Commit

Permalink
Merge pull request #4051 from oat-sa/backport/SOLAR-777/remove-ff
Browse files Browse the repository at this point in the history
Backport/solar 777/remove ff
  • Loading branch information
bartlomiejmarszal authored Jun 17, 2024
2 parents ab6c2c9 + df43995 commit 0b0d3bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions models/classes/theme/ThemeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ class ThemeService extends ThemeServiceAbstract
*/
public function getCurrentThemeId()
{
if ($this->isTaoAsToolEnabled()) {
return PortalTheme::THEME_ID;
}

return $this->getOption(static::OPTION_CURRENT);
}

Expand Down
6 changes: 4 additions & 2 deletions models/classes/theme/ThemeServiceAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,12 @@ protected function getThemeDetailsProviders()
return [];
}

/**
* @deprecated
*/
protected function isTaoAsToolEnabled(): bool
{
return $this->getFeatureFlagChecker()
->isEnabled(FeatureFlagCheckerInterface::FEATURE_FLAG_TAO_AS_A_TOOL);
return false;
}

private function getFeatureFlagChecker(): FeatureFlagCheckerInterface
Expand Down

0 comments on commit 0b0d3bf

Please sign in to comment.