summaryrefslogtreecommitdiff
path: root/src/main-gtk2.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-gtk2.c
parentfebe9390ea25100616e1db27aff199491dcf25b5 (diff)
Remove unused scansubdir() and TERM_XTRA_SCANSUBDIR
Diffstat (limited to 'src/main-gtk2.c')
-rw-r--r--src/main-gtk2.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/main-gtk2.c b/src/main-gtk2.c
index 102a8b7b..07b86430 100644
--- a/src/main-gtk2.c
+++ b/src/main-gtk2.c
@@ -2730,36 +2730,6 @@ static errr Term_xtra_gtk(int n, int v)
return ret;
}
- /* Subdirectory scan */
- case TERM_XTRA_SCANSUBDIR:
- {
- DIR *directory;
- struct dirent *entry;
-
- scansubdir_max = 0;
-
- directory = opendir(scansubdir_dir);
- if (!directory) return (1);
-
- while ((entry = readdir(directory)) != NULL)
- {
- char file[PATH_MAX + NAME_MAX + 2];
- struct stat filedata;
-
- file[PATH_MAX + NAME_MAX] = 0;
- strncpy(file, scansubdir_dir, PATH_MAX);
- strncat(file, "/", 2);
- strncat(file, entry->d_name, NAME_MAX);
- if ((stat(file, &filedata) == 0) && S_ISDIR(filedata.st_mode))
- {
- string_free(scansubdir_result[scansubdir_max]);
- scansubdir_result[scansubdir_max] =
- string_make(entry->d_name);
- ++scansubdir_max;
- }
- }
- }
-
/* Rename main window */
case TERM_XTRA_RENAME_MAIN_WIN: gtk_window_set_title(GTK_WINDOW(data[0].window), angband_term_name[0]); return (0);