From eb6c38ac17deda25e4512e2be5b69b05249d3d7e Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 8 May 2014 07:05:29 -0400 Subject: [PATCH] Code Cleanup - Removed obsolete configuration variable 'patterns', which is no longer used. --- ChangeLog | 1 + NEWS | 1 + doc/man/taskrc.5.in | 5 ----- src/Config.cpp | 1 - src/commands/CmdShow.cpp | 1 - 5 files changed, 2 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 29da03d0e..b50c2a5cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -69,6 +69,7 @@ - Added certificate hostname verification (thanks to Alexander Sulfrian). - Removed debugging code. - Added details in debug mode, for unrecognized data (thanks to Kosta H). +- Removed unused 'patterns' configuration variable. ------ current release --------------------------- diff --git a/NEWS b/NEWS index c7cccbf27..e5eefcb59 100644 --- a/NEWS +++ b/NEWS @@ -29,6 +29,7 @@ Removed features in 2.4.0 - Old-style color names including underscores are no longer supported. - Removed priority counts from the 'projects' commands. - Removed the unused 'locale' configuration variable. + - Removed the unused 'patterns' confguration variable. Known Issues diff --git a/doc/man/taskrc.5.in b/doc/man/taskrc.5.in index b57163a1e..9edf008c9 100644 --- a/doc/man/taskrc.5.in +++ b/doc/man/taskrc.5.in @@ -356,11 +356,6 @@ among users that are not comfortable with regular expressions. .B xterm.title=no Sets the xterm window title when reports are run. Defaults to off. -.TP -.B patterns=on -Enables or disables pattern support on the command line, such as /foo/. -Defaults to on. - .TP .B expressions=infix|postfix Sets a preference for infix expressions (1 + 2) or postfix expressions (1 2 +). diff --git a/src/Config.cpp b/src/Config.cpp index 6d758e882..be5758238 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -98,7 +98,6 @@ std::string Config::_defaults = "regex=no # Assume all search/filter strings are regexes\n" "xterm.title=no # Sets xterm title for some commands\n" "expressions=infix # Prefer infix over postfix expressions\n" - "patterns=on # Support for regex patterns\n" "dom=on # Support DOM access\n" "json.array=off # Enclose JSON output in [ ]\n" "abbreviation.minimum=2 # Shortest allowed abbreviation\n" diff --git a/src/commands/CmdShow.cpp b/src/commands/CmdShow.cpp index fb10373c5..513af1d01 100644 --- a/src/commands/CmdShow.cpp +++ b/src/commands/CmdShow.cpp @@ -166,7 +166,6 @@ int CmdShow::execute (std::string& output) " locking" " monthsperline" " nag" - " patterns" " print.empty.columns" " recurrence.indicator" " recurrence.limit"