Deprecated Feature Removal

- Removed deprecated 'edit.verbose' setting, in favor of the 'edit' verbosity
  token..
This commit is contained in:
Paul Beckingham 2013-10-20 14:53:30 -04:00
parent 2cbae3fb9c
commit 626f89c263
5 changed files with 4 additions and 12 deletions

View file

@ -3,6 +3,8 @@
Features Features
+ Removed deprecated 'echo.command' setting, in favor of the 'header' and + Removed deprecated 'echo.command' setting, in favor of the 'header' and
'affected' verbosity tokens. 'affected' verbosity tokens.
+ Removed deprecated 'edit.verbose' setting, in favor of the 'edit' verbosity
token..
Bugs Bugs

View file

@ -222,13 +222,6 @@ command is used. Taskwarrior will first look for this configuration variable. If
found, it is used. Otherwise it will look for the $VISUAL or $EDITOR found, it is used. Otherwise it will look for the $VISUAL or $EDITOR
environment variables, before it defaults to using "vi". environment variables, before it defaults to using "vi".
.TP
.B edit.verbose=on
When set to on (the default), helpful explanatory comments are added to the
edited file when using the "task edit ..." command. Setting this to off means
that you would see a smaller, more compact representation of the task, with no
help text. Deprecated - use verbosity token 'edit'.
.TP .TP
.B reserved.lines=1 .B reserved.lines=1
This is the number of lines reserved at the bottom of the screen for the shell This is the number of lines reserved at the bottom of the screen for the shell

View file

@ -160,8 +160,7 @@ std::string CmdEdit::formatDuration (
std::string CmdEdit::formatTask (Task task, const std::string& dateformat) std::string CmdEdit::formatTask (Task task, const std::string& dateformat)
{ {
std::stringstream before; std::stringstream before;
bool verbose = context.verbose ("edit") || bool verbose = context.verbose ("edit");
context.config.getBoolean ("edit.verbose"); // Deprecated 2.0
if (verbose) if (verbose)
before << "# " << STRING_EDIT_HEADER_1 << "\n" before << "# " << STRING_EDIT_HEADER_1 << "\n"

View file

@ -146,7 +146,6 @@ int CmdShow::execute (std::string& output)
" displayweeknumber" " displayweeknumber"
" dom" " dom"
" due" " due"
" edit.verbose" // Deprecated 2.0
" editor" " editor"
" exit.on.missing.db" " exit.on.missing.db"
" expressions" " expressions"

View file

@ -148,8 +148,7 @@ std::string legacyCheckForDeprecatedVariables ()
it->first.substr (it->first.length () - 12) == ".annotations") it->first.substr (it->first.length () - 12) == ".annotations")
deprecated.push_back (it->first); deprecated.push_back (it->first);
if (it->first == "edit.verbose" || if (it->first == "next" ||
it->first == "next" ||
it->first == "annotations" || it->first == "annotations" ||
it->first == "export.ical.class") it->first == "export.ical.class")
deprecated.push_back (it->first); deprecated.push_back (it->first);