mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Code Cleanup
- Removed FEATURE_URL conditional compilation.
This commit is contained in:
parent
77ba7946f5
commit
2ad3d0d449
2 changed files with 0 additions and 6 deletions
|
@ -1272,7 +1272,6 @@ int handleImport (std::string& outs)
|
||||||
// Use the description as a file name.
|
// Use the description as a file name.
|
||||||
std::string file = trim (context.task.get ("description"));
|
std::string file = trim (context.task.get ("description"));
|
||||||
|
|
||||||
#ifdef FEATURE_URL
|
|
||||||
std::string tmpfile = "";
|
std::string tmpfile = "";
|
||||||
Uri uri (file);
|
Uri uri (file);
|
||||||
uri.parse ();
|
uri.parse ();
|
||||||
|
@ -1287,7 +1286,6 @@ int handleImport (std::string& outs)
|
||||||
|
|
||||||
file = tmpfile;
|
file = tmpfile;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (file.length () > 0)
|
if (file.length () > 0)
|
||||||
{
|
{
|
||||||
|
@ -1344,10 +1342,8 @@ int handleImport (std::string& outs)
|
||||||
case not_a_clue: /* to stop the compiler from complaining. */ break;
|
case not_a_clue: /* to stop the compiler from complaining. */ break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FEATURE_URL
|
|
||||||
if (tmpfile != "")
|
if (tmpfile != "")
|
||||||
remove (tmpfile.c_str ());
|
remove (tmpfile.c_str ());
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw std::string ("You must specify a file to import.");
|
throw std::string ("You must specify a file to import.");
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
|
|
||||||
#define FEATURE_TDB_OPT 1 // TDB Optimization reduces file I/O.
|
#define FEATURE_TDB_OPT 1 // TDB Optimization reduces file I/O.
|
||||||
#define FEATURE_NEW_ID 1 // Echoes back new id.
|
#define FEATURE_NEW_ID 1 // Echoes back new id.
|
||||||
#define FEATURE_URL 1 // URL support for import.
|
|
||||||
// (always enabled for merge/push/pull)
|
|
||||||
//#define FEATURE_REGEX 1 // Enables regexes for attribute modifiers,
|
//#define FEATURE_REGEX 1 // Enables regexes for attribute modifiers,
|
||||||
// // subst, general search.
|
// // subst, general search.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue