Commit 82d4fecb authored by pifagor's avatar pifagor Committed by pifagor
Browse files

Issue #2998258 by pifagor, alex_optim: Delete a code that is not in use

parent 6b00cacb
......@@ -237,12 +237,6 @@ class XmlSitemapGenerator implements XmlSitemapGeneratorInterface {
while ($link = $links->fetchAssoc()) {
$link['language'] = $link['language'] != LanguageInterface::LANGCODE_NOT_SPECIFIED ? xmlsitemap_language_load($link['language']) : $url_options['language'];
// @todo Figure out a way to bring back the alias preloading optimization.
// @codingStandardsIgnoreStart
// if (!empty($link['loc']) && $url_options['alias']) {
// $link['loc'] = $this->getPathAlias($link['loc'], $link['language']->getId());
// }
// @codingStandardsIgnoreEnd
$link_options = [
'language' => $link['language'],
'xmlsitemap_link' => $link,
......
......@@ -181,8 +181,6 @@ function xmlsitemap_schema() {
'length' => 32,
'not null' => TRUE,
'default' => '',
// 'unsigned' => TRUE,
// 'default' => 0,.
],
'type' => [
'description' => 'Primary key with id; the type of item (e.g. node, user, etc.).',
......@@ -244,9 +242,6 @@ function xmlsitemap_schema() {
'description' => 'The priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0.',
'type' => 'float',
'default' => NULL,
// @todo Convert this field to non-nullable.
// 'default' => 0.5,
// 'not null' => NULL,
],
'priority_override' => [
'description' => 'A boolean that if TRUE means that the priority field has been overridden from its default value.',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment