mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Removed Feature
- Old-style color names including underscores are no longer supported.
This commit is contained in:
parent
a77c04e100
commit
e435c1655b
3 changed files with 4 additions and 25 deletions
|
@ -14,6 +14,7 @@ Features
|
||||||
+ Removed deprecated 'push', 'pull' and 'merge' commands.
|
+ Removed deprecated 'push', 'pull' and 'merge' commands.
|
||||||
+ Removed version 1.x column name support.
|
+ Removed version 1.x column name support.
|
||||||
+ Removed version 1.x sort column support.
|
+ Removed version 1.x sort column support.
|
||||||
|
+ Old-style color names including underscores are no longer supported.
|
||||||
|
|
||||||
Bugs
|
Bugs
|
||||||
+ #1473 Make TASK_RCDIR customizable (thanks to Elias Probst).
|
+ #1473 Make TASK_RCDIR customizable (thanks to Elias Probst).
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -20,6 +20,7 @@ Removed features in 2.4.0
|
||||||
|
|
||||||
- Version 1.x column names no longer supported.
|
- Version 1.x column names no longer supported.
|
||||||
- Version 1.x sort columns no longer supported.
|
- Version 1.x sort columns no longer supported.
|
||||||
|
- Old-style color names including underscores are no longer supported.
|
||||||
|
|
||||||
Known Issues
|
Known Issues
|
||||||
|
|
||||||
|
|
|
@ -76,32 +76,9 @@ void legacySortColumnMap (std::string& name)
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
std::string legacyCheckForDeprecatedColor ()
|
std::string legacyCheckForDeprecatedColor ()
|
||||||
{
|
{
|
||||||
std::vector <std::string> deprecated;
|
// 2014-01-26: Color defs containing '_' removed.
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::stringstream out;
|
return "";
|
||||||
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 ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue