got rid of a number of ifdefs which should not be needed anymore

This commit is contained in:
Jean-Francois Dockes
2015-10-08 14:48:50 +02:00
parent 453ed8748a
commit 9a72fa5980
5 changed files with 4 additions and 20 deletions
-2
View File
@@ -94,7 +94,6 @@ void docFieldsFromXattrs(RclConfig *cfg, const map<string, string>& xfields,
void reapMetaCmds(RclConfig* cfg, const string& path,
map<string, string>& cfields)
{
#ifndef _WIN32
const vector<MDReaper>& reapers = cfg->getMDReapers();
if (reapers.empty())
return;
@@ -113,7 +112,6 @@ void reapMetaCmds(RclConfig* cfg, const string& path,
cfields[rp->fieldname] = output;
}
}
#endif
}
// Set fields from external commands
-4
View File
@@ -109,12 +109,8 @@ bool Uncomp::uncompressfile(const string& ifn,
}
// Execute command and retrieve output file name, check that it exists
#ifndef _WIN32
ExecCmd ex;
int status = ex.doexec(cmd, args, 0, &tfile);
#else
int status = -1;
#endif
if (status || tfile.empty()) {
LOGERR(("uncompressfile: doexec: failed for [%s] status 0x%x\n",
ifn.c_str(), status));