Skip to content

Commit

Permalink
minor #31675 [Intl][4.3] Cleanup internal api (ro0NL)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.3 branch.

Discussion
----------

[Intl][4.3] Cleanup internal api

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

Forgotten in #31411 (comment)

Commits
-------

6eab5d2 [Intl][4.3] Cleanup internal api
  • Loading branch information
nicolas-grekas committed May 29, 2019
2 parents 33e743b + 6eab5d2 commit dd3dc1a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
Expand Up @@ -18,7 +18,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal
* @internal to be removed in 5.0.
*/
class LanguageDataProvider
{
Expand All @@ -37,17 +37,11 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
$this->reader = $reader;
}

/**
* @internal to be removed in 5.0.
*/
public function getLanguages()
{
return $this->reader->readEntry($this->path, 'meta', ['Languages']);
}

/**
* @internal to be removed in 5.0.
*/
public function getAliases()
{
return $this->reader->readEntry($this->path, 'root', ['Aliases']);
Expand All @@ -62,9 +56,6 @@ public function getName($language, $displayLocale = null)
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $language]);
}

/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null)
{
if (null === $displayLocale) {
Expand All @@ -83,9 +74,6 @@ public function getNames($displayLocale = null)
return $languages;
}

/**
* @internal to be removed in 5.0.
*/
public function getAlpha3Code($language)
{
return $this->reader->readEntry($this->path, 'meta', ['Alpha2ToAlpha3', $language]);
Expand Down
Expand Up @@ -18,7 +18,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal
* @internal to be removed in 5.0.
*/
class RegionDataProvider
{
Expand All @@ -37,9 +37,6 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
$this->reader = $reader;
}

/**
* @internal to be removed in 5.0.
*/
public function getRegions()
{
return $this->reader->readEntry($this->path, 'meta', ['Regions']);
Expand All @@ -54,9 +51,6 @@ public function getName($region, $displayLocale = null)
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $region]);
}

/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null)
{
if (null === $displayLocale) {
Expand Down
Expand Up @@ -18,7 +18,7 @@
*
* @author Bernhard Schussek <bschussek@gmail.com>
*
* @internal
* @internal to be removed in 5.0.
*/
class ScriptDataProvider
{
Expand All @@ -37,9 +37,6 @@ public function __construct(string $path, BundleEntryReaderInterface $reader)
$this->reader = $reader;
}

/**
* @internal to be removed in 5.0.
*/
public function getScripts()
{
return $this->reader->readEntry($this->path, 'meta', ['Scripts']);
Expand All @@ -54,9 +51,6 @@ public function getName($script, $displayLocale = null)
return $this->reader->readEntry($this->path, $displayLocale, ['Names', $script]);
}

/**
* @internal to be removed in 5.0.
*/
public function getNames($displayLocale = null)
{
if (null === $displayLocale) {
Expand Down

0 comments on commit dd3dc1a

Please sign in to comment.