summaryrefslogtreecommitdiff
path: root/src/main-xaw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main-xaw.c')
-rw-r--r--src/main-xaw.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/main-xaw.c b/src/main-xaw.c
index 8de36a95..d7d3f345 100644
--- a/src/main-xaw.c
+++ b/src/main-xaw.c
@@ -1452,36 +1452,6 @@ static errr Term_xtra_xaw(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))
- {
- 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) && S_ISDIR((filedata.st_mode)))
- {
- string_free(scansubdir_result[scansubdir_max]);
- scansubdir_result[scansubdir_max] = string_make(entry->d_name);
- ++scansubdir_max;
- }
- }
- }
-
case TERM_XTRA_REACT:
return (Term_xtra_xaw_react());
}