nsxiv30e2356
Remove obsolete files[].base
+0 −6
2 files changed
| @@ -103,7 +103,6 @@ void cleanup(void) | |||
| 103 | 103 | void check_add_file(char *filename, bool given) | |
| 104 | 104 | { | |
| 105 | 105 | char *path; | |
| 106 | − | const char *bn; | |
| 107 | 106 | ||
| 108 | 107 | if (*filename == '\0') | |
| 109 | 108 | return; | |
| @@ -124,10 +123,6 @@ void check_add_file(char *filename, bool given) | |||
| 124 | 123 | ||
| 125 | 124 | files[fileidx].name = estrdup(filename); | |
| 126 | 125 | files[fileidx].path = path; | |
| 127 | − | if ((bn = strrchr(files[fileidx].name , '/')) != NULL && bn[1] != '\0') | |
| 128 | − | files[fileidx].base = ++bn; | |
| 129 | − | else | |
| 130 | − | files[fileidx].base = files[fileidx].name; | |
| 131 | 126 | if (given) | |
| 132 | 127 | files[fileidx].flags |= FF_WARN; | |
| 133 | 128 | fileidx++; | |
| @@ -113,7 +113,6 @@ typedef enum { | |||
| 113 | 113 | typedef struct { | |
| 114 | 114 | const char *name; /* as given by user */ | |
| 115 | 115 | const char *path; /* always absolute */ | |
| 116 | − | const char *base; | |
| 117 | 116 | fileflags_t flags; | |
| 118 | 117 | } fileinfo_t; | |
| 119 | 118 | ||