Gijs Vermeulen : kernel32: Remove unused functions is_executable() and get_table_entry().
Alexandre Julliard
julliard at winehq.org
Fri May 1 16:17:51 CDT 2020
Module: wine
Branch: master
Commit: e7abfe953394fdb36ce95e588b6ce1988d833736
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e7abfe953394fdb36ce95e588b6ce1988d833736
Author: Gijs Vermeulen <gijsvrm at gmail.com>
Date: Fri May 1 19:36:25 2020 +0200
kernel32: Remove unused functions is_executable() and get_table_entry().
Signed-off-by: Gijs Vermeulen <gijsvrm at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/locale.c | 5 -----
dlls/kernel32/path.c | 11 -----------
2 files changed, 16 deletions(-)
diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index ac04e85946..52c24b275d 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -62,11 +62,6 @@ extern BOOL WINAPI Internal_EnumTimeFormats( TIMEFMT_ENUMPROCW proc, LCID lcid,
extern BOOL WINAPI Internal_EnumUILanguages( UILANGUAGE_ENUMPROCW proc, DWORD flags,
LONG_PTR param, BOOL unicode );
-static inline unsigned short get_table_entry( const unsigned short *table, WCHAR ch )
-{
- return table[table[table[ch >> 8] + ((ch >> 4) & 0x0f)] + (ch & 0xf)];
-}
-
/***********************************************************************
* get_lcid_codepage
*
diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
index 93759592c4..54dbf5a4f6 100644
--- a/dlls/kernel32/path.c
+++ b/dlls/kernel32/path.c
@@ -43,17 +43,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(file);
#define MAX_PATHNAME_LEN 1024
-/* check if a file name is for an executable file (.exe or .com) */
-static inline BOOL is_executable( const WCHAR *name )
-{
- static const WCHAR exeW[] = {'.','e','x','e',0};
- static const WCHAR comW[] = {'.','c','o','m',0};
- int len = strlenW(name);
-
- if (len < 4) return FALSE;
- return (!strcmpiW( name + len - 4, exeW ) || !strcmpiW( name + len - 4, comW ));
-}
-
/***********************************************************************
* copy_filename_WtoA
*
More information about the wine-cvs
mailing list