summaryrefslogtreecommitdiff
path: root/src/main-x11.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-x11.c
parentfebe9390ea25100616e1db27aff199491dcf25b5 (diff)
Remove unused scansubdir() and TERM_XTRA_SCANSUBDIR
Diffstat (limited to 'src/main-x11.c')
-rw-r--r--src/main-x11.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/main-x11.c b/src/main-x11.c
index 9a106bd6..bccb4d85 100644
--- a/src/main-x11.c
+++ b/src/main-x11.c
@@ -2121,39 +2121,6 @@ static errr Term_xtra_x11(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;
- }
- }
-
- closedir(directory);
- return 0;
- }
-
/* React to changes */
case TERM_XTRA_REACT: return (Term_xtra_x11_react());