mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove unused function has_extension
This commit is contained in:
parent
0100ae7cd3
commit
a26ad34ecd
|
@ -138,8 +138,6 @@ static void window_loadsave_populate_list(rct_window *w, int includeNewItem, con
|
||||||
static void window_loadsave_select(rct_window *w, const char *path);
|
static void window_loadsave_select(rct_window *w, const char *path);
|
||||||
static void window_loadsave_sort_list(int index, int endIndex);
|
static void window_loadsave_sort_list(int index, int endIndex);
|
||||||
|
|
||||||
static int has_extension(char *path, char *extension);
|
|
||||||
|
|
||||||
static rct_window *window_overwrite_prompt_open(const char *name, const char *path);
|
static rct_window *window_overwrite_prompt_open(const char *name, const char *path);
|
||||||
|
|
||||||
static int window_loadsave_get_dir(utf8 *last_save, char *path, const char *subdir)
|
static int window_loadsave_get_dir(utf8 *last_save, char *path, const char *subdir)
|
||||||
|
@ -386,17 +384,6 @@ static void window_loadsave_mouseup(rct_window *w, int widgetIndex)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int has_extension(char *path, char *extension)
|
|
||||||
{
|
|
||||||
int extensionLength = strlen(extension);
|
|
||||||
int pathLength = strlen(path);
|
|
||||||
for (int u = 0; u < extensionLength; u++) {
|
|
||||||
if (tolower(path[pathLength - extensionLength + u]) != tolower(extension[u]))
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void window_loadsave_scrollgetsize(rct_window *w, int scrollIndex, int *width, int *height)
|
static void window_loadsave_scrollgetsize(rct_window *w, int scrollIndex, int *width, int *height)
|
||||||
{
|
{
|
||||||
*height = w->no_list_items * 10;
|
*height = w->no_list_items * 10;
|
||||||
|
|
Loading…
Reference in New Issue