summaryrefslogtreecommitdiff
path: root/src/main-win.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2014-06-26 03:23:42 +0200
committerBardur Arantsson <bardur@scientician.net>2014-06-26 03:56:00 +0200
commitc65ae1ca380849a0aa399f6c612ea260d6a2e5c1 (patch)
treea50a2e128be90f835db958832ffce7ff88aec6a1 /src/main-win.c
parentfebe9390ea25100616e1db27aff199491dcf25b5 (diff)
Remove unused scansubdir() and TERM_XTRA_SCANSUBDIR
Diffstat (limited to 'src/main-win.c')
-rw-r--r--src/main-win.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/main-win.c b/src/main-win.c
index 2d740034..91d6b0f3 100644
--- a/src/main-win.c
+++ b/src/main-win.c
@@ -1824,30 +1824,6 @@ static errr Term_xtra_win(int n, int v)
return 0;
}
- /*
- * Scans for subdirectories in a directory "scansubdir_dir"
- * and place teh result in "scansubdir_result/scansubdir_max"
- */
- case TERM_XTRA_SCANSUBDIR:
- {
- BOOL ok;
- HANDLE h;
- WIN32_FIND_DATA fd;
- for (h = FindFirstFile(format("%s\\*", scansubdir_dir), &fd), ok = 1;
- h != INVALID_HANDLE_VALUE && ok;
- ok = FindNextFile(h, &fd))
- {
- if ((fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) && (strcmp(fd.cFileName, ".")) && (strcmp(fd.cFileName, "..")))
- {
- string_free(scansubdir_result[scansubdir_max]);
- scansubdir_result[scansubdir_max] = string_make(fd.cFileName);
- scansubdir_max++;
- }
- }
-
- return 0;
- }
-
/* Rename main window */
case TERM_XTRA_RENAME_MAIN_WIN:
SetWindowText(get_main_hwnd(), angband_term_name[0]); return (0);