Skip to content

Commit

Permalink
[locale] Remove old-style GeoIP configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaandegroot committed Sep 7, 2019
1 parent 5a24e45 commit 0ee8427
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -12,6 +12,9 @@ This release contains contributions from (alphabetically by first name):

## Modules ##

- *locale* module no longer recognized the legacy GeoIP configuration.
This has been deprecated since Calamares 3.2.8.


# 3.2.13 (2019-08-30) #

Expand Down
16 changes: 0 additions & 16 deletions src/modules/locale/LocaleViewStep.cpp
Expand Up @@ -231,20 +231,4 @@ LocaleViewStep::setConfigurationMap( const QVariantMap& configurationMap )
m_geoipStyle = CalamaresUtils::getString( geoip, "style" );
m_geoipSelector = CalamaresUtils::getString( geoip, "selector" );
}
else
{
// Accommodate deprecated geoip configuration
m_geoipUrl = CalamaresUtils::getString( configurationMap, "geoipUrl" );
m_geoipStyle = CalamaresUtils::getString( configurationMap, "geoipStyle" );
m_geoipSelector = CalamaresUtils::getString( configurationMap, "geoipSelector" );

if ( !m_geoipUrl.isEmpty() && ( m_geoipStyle.isEmpty() || m_geoipStyle == "legacy" ) )
{
m_geoipStyle = "json";
m_geoipUrl.append( "/json/" );
}

if ( !m_geoipUrl.isEmpty() )
cWarning() << "Legacy-style GeoIP configuration is deprecated. Use geoip: map.";
}
}

0 comments on commit 0ee8427

Please sign in to comment.