Code Cleanup
- Removed FEATURE_URL conditional compilation.
This commit is contained in:
@@ -1272,7 +1272,6 @@ int handleImport (std::string& outs)
|
||||
// Use the description as a file name.
|
||||
std::string file = trim (context.task.get ("description"));
|
||||
|
||||
#ifdef FEATURE_URL
|
||||
std::string tmpfile = "";
|
||||
Uri uri (file);
|
||||
uri.parse ();
|
||||
@@ -1287,7 +1286,6 @@ int handleImport (std::string& outs)
|
||||
|
||||
file = tmpfile;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (file.length () > 0)
|
||||
{
|
||||
@@ -1344,10 +1342,8 @@ int handleImport (std::string& outs)
|
||||
case not_a_clue: /* to stop the compiler from complaining. */ break;
|
||||
}
|
||||
|
||||
#ifdef FEATURE_URL
|
||||
if (tmpfile != "")
|
||||
remove (tmpfile.c_str ());
|
||||
#endif
|
||||
}
|
||||
else
|
||||
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_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,
|
||||
// // subst, general search.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user