Removed Feature

- Old-style color names including underscores are no longer supported.
This commit is contained in:
Paul Beckingham 2014-01-26 14:01:03 -05:00
parent a77c04e100
commit e435c1655b
3 changed files with 4 additions and 25 deletions

View file

@ -14,6 +14,7 @@ Features
+ Removed deprecated 'push', 'pull' and 'merge' commands.
+ Removed version 1.x column name support.
+ Removed version 1.x sort column support.
+ Old-style color names including underscores are no longer supported.
Bugs
+ #1473 Make TASK_RCDIR customizable (thanks to Elias Probst).

1
NEWS
View file

@ -20,6 +20,7 @@ Removed features in 2.4.0
- Version 1.x column names no longer supported.
- Version 1.x sort columns no longer supported.
- Old-style color names including underscores are no longer supported.
Known Issues

View file

@ -76,32 +76,9 @@ void legacySortColumnMap (std::string& name)
////////////////////////////////////////////////////////////////////////////////
std::string legacyCheckForDeprecatedColor ()
{
std::vector <std::string> deprecated;
std::map <std::string, std::string>::const_iterator it;
for (it = context.config.begin (); it != context.config.end (); ++it)
{
if (it->first.find ("color.") != std::string::npos)
{
std::string value = context.config.get (it->first);
if (value.find ("_") != std::string::npos)
deprecated.push_back (it->first);
}
}
// 2014-01-26: Color defs containing '_' removed.
std::stringstream out;
if (deprecated.size ())
{
out << STRING_CONFIG_DEPRECATED_US
<< "\n";
std::vector <std::string>::iterator it2;
for (it2 = deprecated.begin (); it2 != deprecated.end (); ++it2)
out << " " << *it2 << "=" << context.config.get (*it2) << "\n";
out << "\n";
}
return out.str ();
return "";
}
////////////////////////////////////////////////////////////////////////////////