mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 18:06:42 +02:00
Code Cleanup
- Removed dead code.
This commit is contained in:
parent
8ad29bded7
commit
65cf836776
1 changed files with 0 additions and 12 deletions
12
src/A3.cpp
12
src/A3.cpp
|
@ -1374,7 +1374,6 @@ bool A3::is_attmod (Nibbler& n, Arg& arg)
|
||||||
std::string canonical;
|
std::string canonical;
|
||||||
std::string modifier;
|
std::string modifier;
|
||||||
std::string value;
|
std::string value;
|
||||||
// time_t date;
|
|
||||||
|
|
||||||
// If there is a valid attribute name.
|
// If there is a valid attribute name.
|
||||||
if (n.getName (name) &&
|
if (n.getName (name) &&
|
||||||
|
@ -1398,22 +1397,11 @@ bool A3::is_attmod (Nibbler& n, Arg& arg)
|
||||||
// Consider removing this for a stricter parse.
|
// Consider removing this for a stricter parse.
|
||||||
if (n.getQuoted ('"', value) ||
|
if (n.getQuoted ('"', value) ||
|
||||||
n.getQuoted ('\'', value) ||
|
n.getQuoted ('\'', value) ||
|
||||||
// TODO Need more things recognized before it falls through to getUntilEOS.
|
|
||||||
// n.getDate (context.config.get ("dateformat"), date) ||
|
|
||||||
// need Duration too.
|
|
||||||
n.getUntilWS (value) ||
|
n.getUntilWS (value) ||
|
||||||
n.getName (value) ||
|
n.getName (value) ||
|
||||||
n.getUntilEOS (value) || // Redundant?
|
n.getUntilEOS (value) || // Redundant?
|
||||||
n.depleted ())
|
n.depleted ())
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
TODO Eliminate anything that looks like a URL.
|
|
||||||
// Exclude certain URLs, that look like attrs.
|
|
||||||
if (value.find ('@') <= n.cursor () ||
|
|
||||||
value.find ('/') <= n.cursor ())
|
|
||||||
return false;
|
|
||||||
*/
|
|
||||||
|
|
||||||
arg._raw = canonical + '.' + modifier + ':' + value;
|
arg._raw = canonical + '.' + modifier + ':' + value;
|
||||||
Column* col = context.columns[canonical];
|
Column* col = context.columns[canonical];
|
||||||
arg._type = col ? Arg::type_id (col->type ()) : Arg::type_pseudo;
|
arg._type = col ? Arg::type_id (col->type ()) : Arg::type_pseudo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue