Cleanup: Removed deprecated alias._query setting

This commit is contained in:
Paul Beckingham 2018-05-13 19:01:45 -04:00
parent a12fb177e2
commit aa0db81300
4 changed files with 18 additions and 11 deletions

View file

@ -96,22 +96,21 @@ std::string legacyCheckForDeprecatedVariables ()
for (auto& it : context.config)
{
// 2014-07-04: report.*.limit removed.
// 2016-02-24: alias._query removed.
// Deprecated in 2.5.0.
// report.*.annotations
if (it.first.length () > 19 &&
it.first.substr (0, 7) == "report." &&
it.first.substr (it.first.length () - 12) == ".annotations")
deprecated.push_back (it.first);
// Deprecated in 2.5.0.
if (it.first == "next" ||
it.first == "annotations" ||
it.first == "export.ical.class")
deprecated.push_back (it.first);
// Deprecated іn 2.4.0.
if (it.first == "alias._query")
deprecated.push_back (it.first);
// Deprecated in 2.5.0.
if (it.first == "urgency.inherit.coefficient")
deprecated.push_back (it.first);
@ -140,6 +139,7 @@ std::string legacyCheckForDeprecatedColumns ()
{
if (it.first.find ("report") == 0)
{
// Deprecated in 2.0.0
std::string value = context.config.get (it.first);
if (value.find ("entry_time") != std::string::npos ||
value.find ("start_time") != std::string::npos ||