From c84e3cc893ba7e2f9866e721635a8c23ce0f1167 Mon Sep 17 00:00:00 2001 From: Louis-Claude Canon Date: Sat, 16 Jun 2012 17:36:33 +0200 Subject: [PATCH] Code Cleanup - With the separation between standard output and standard error, the solution for bug #956 is obsolete. The mechanism (putting verbose to "nothing") is still kept for easing the management of the standard error. --- doc/man/task.1.in | 6 ++---- src/Context.cpp | 7 ++----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/doc/man/task.1.in b/doc/man/task.1.in index 5c057fd13..99d67063b 100644 --- a/doc/man/task.1.in +++ b/doc/man/task.1.in @@ -207,8 +207,7 @@ the priority to H for each of those tasks. This can also be achieved directly: task project:Home modify priority:H -This command is mainly of use to external scripts. As such, only minimal output -is generated (equivalent to verbose=nothing). +This command is mainly of use to external scripts. .TP .B task uuids @@ -222,8 +221,7 @@ this: This example first gets the UUIDs for the project:Home and status:completed filter, then makes each of those tasks pending again. -This command is mainly of use to external scripts. As such, only minimal -output is generated (equivalent to verbose=nothing). +This command is mainly of use to external scripts. .TP .B task udas diff --git a/src/Context.cpp b/src/Context.cpp index 938689805..6a0c07fcf 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -694,16 +694,13 @@ void Context::updateXtermTitle () } //////////////////////////////////////////////////////////////////////////////// -// This function allows a clean output if the command is a helper subcommand or -// a command aimed at being used by an external script. +// This function allows a clean output if the command is a helper subcommand. void Context::updateVerbosity () { std::string command; a3.find_command (command); - if (command[0] == '_' || - command == "ids" || - command == "uuids") + if (command[0] == '_') { verbosity.clear (); verbosity.push_back ("nothing");