From aa322a2f4b2df8f898844e7dbf84e4a1aab3f4a2 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 19 Sep 2021 14:25:06 -0700 Subject: [PATCH] lefty SFcompareEntries: remove MSVC 'strcascmp' fall back Commit 1c2c986ebb2d16e491c68656217f5352b3d809c8 replaced `SFCompareEntries` implementation with `strcasecmp` or `_stricmp` depending on whether we were compiling with a non-MSVC compiler or with MSVC, respectively. However, this code is part of the X11 GUI support and hence never built with MSVC. This commit removes this unnecessary fall back which was dead code. --- cmd/lefty/ws/x11/libfilereq/Dir.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cmd/lefty/ws/x11/libfilereq/Dir.c b/cmd/lefty/ws/x11/libfilereq/Dir.c index 14d6b4312..db75d851e 100644 --- a/cmd/lefty/ws/x11/libfilereq/Dir.c +++ b/cmd/lefty/ws/x11/libfilereq/Dir.c @@ -40,9 +40,7 @@ #include "config.h" #include #include -#ifndef _MSC_VER #include -#endif #include "SFinternal.h" @@ -57,11 +55,7 @@ int SFcompareEntries (const void *vp, const void *vq) { const SFEntry *p = vp, *q = vq; #ifdef SEL_FILE_IGNORE_CASE -#ifdef _MSC_VER - return _stricmp(p->real, q->real); -#else return strcasecmp(p->real, q->real); -#endif #else /* def SEL_FILE_IGNORE_CASE */ return strcmp (p->real, q->real); #endif /* def SEL_FILE_IGNORE_CASE */ -- 2.40.0