Skip to content
Permalink
Browse files

Remove Helper::getSubset() as of good font-unicode-range support

  • Loading branch information...
redaxmedia committed Sep 9, 2019
1 parent 90c8696 commit 4d87e8130c53190cea32e49797afa32f878d58ac
@@ -152,20 +152,6 @@ public static function getTransport() : array
return $transport->getArray();
}
/**
* get the subset
*
* @since 3.0.0
*
* @return string|null
*/
public static function getSubset() : ?string
{
$subset = new Helper\Subset(Registry::getInstance(), Language::getInstance());
return $subset->process();
}
/**
* get the direction
*

This file was deleted.

@@ -8,7 +8,7 @@
->init()
->appendFile(
[
'https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700&subset=' . Helper::getSubset(),
'https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700',
'templates/admin/dist/styles/admin.min.css'
])
->rewrite(
@@ -27,7 +27,7 @@
->append(['href' => 'https://fonts.gstatic.com', 'rel' => 'preconnect'])
->appendFile(
[
'https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400&subset=' . Helper::getSubset(),
'https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400',
'templates/console/dist/styles/console.min.css'
])
->concat(); ?>
@@ -34,7 +34,7 @@
->append(['href' => 'https://fonts.gstatic.com', 'rel' => 'preconnect'])
->appendFile(
[
'https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700&subset=' . Helper::getSubset(),
'https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700',
'templates/default/dist/styles/default.min.css'
])
->rewrite(
@@ -27,7 +27,7 @@
->append(['href' => 'https://fonts.gstatic.com', 'rel' => 'preconnect'])
->appendFile(
[
'https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700&subset=' . Helper::getSubset(),
'https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700',
'templates/install/dist/styles/install.min.css'
])
->rewrite(
@@ -32,7 +32,7 @@
->append(['href' => 'https://fonts.gstatic.com', 'rel' => 'preconnect'])
->appendFile(
[
'https://fonts.googleapis.com/css2?family=Raleway:wght@300;700&subset=' . Helper::getSubset(),
'https://fonts.googleapis.com/css2?family=Raleway:wght@300;700',
'templates/skeleton/dist/styles/skeleton.min.css'
])
->concat(); ?>

This file was deleted.

@@ -23,7 +23,6 @@
* @covers Redaxscript\Template\Helper\HelperAbstract
* @covers Redaxscript\Template\Helper\Keywords
* @covers Redaxscript\Template\Helper\Robots
* @covers Redaxscript\Template\Helper\Subset
* @covers Redaxscript\Template\Helper\Title
*/
@@ -351,32 +350,6 @@ public function testGetTransport() : void
$this->assertArrayHasKey('version', $actualArray);
}
/**
* testGetSubset
*
* @since 3.0.0
*
* @param array $registryArray
* @param string $expect
*
* @dataProvider providerAutoloader
*/
public function testGetSubset(array $registryArray = [], string $expect = null) : void
{
/* setup */
$this->_registry->init($registryArray);
/* actual */
$actual = Template\Helper::getSubset();
/* compare */
$this->assertEquals($expect, $actual);
}
/**
* testGetDirection
*

0 comments on commit 4d87e81

Please sign in to comment.
You can’t perform that action at this time.