small cleanups to avoid a few ifdef _WIN32

This commit is contained in:
Jean-Francois Dockes
2022-01-17 15:46:40 +01:00
parent f0efed545d
commit b118c93b4f
14 changed files with 671 additions and 648 deletions
-2
View File
@@ -161,7 +161,6 @@ string mimetype(const string &fn, const struct PathStat *stp,
string mtype;
#ifndef _WIN32
// Extended attribute has priority on everything, as per:
// http://freedesktop.org/wiki/CommonExtendedAttributes
if (pxattr::get(fn, "mime_type", &mtype)) {
@@ -172,7 +171,6 @@ string mimetype(const string &fn, const struct PathStat *stp,
return mtype;
}
}
#endif
if (cfg == 0) {
LOGERR("Mimetype: null config ??\n");