Cleanup: Remove unused file description storage

This isn't used at all in the current File and Asset Browser design.
This commit is contained in:
Julian Eisel 2021-07-30 14:33:39 +02:00
parent c8b7745172
commit 4647ffd918
2 changed files with 0 additions and 5 deletions

View File

@ -1372,9 +1372,6 @@ static void filelist_entry_clear(FileDirEntry *entry)
if (entry->name && ((entry->flags & FILE_ENTRY_NAME_FREE) != 0)) {
MEM_freeN(entry->name);
}
if (entry->description) {
MEM_freeN(entry->description);
}
if (entry->relpath) {
MEM_freeN(entry->relpath);
}
@ -1952,7 +1949,6 @@ static FileDirEntry *filelist_file_create_entry(FileList *filelist, const int in
else {
ret->name = entry->name;
}
ret->description = BLI_strdupcat(filelist->filelist.root, entry->relpath);
ret->uid = entry->uid;
ret->blentype = entry->blentype;
ret->typeflag = entry->typeflag;

View File

@ -1025,7 +1025,6 @@ typedef struct FileDirEntry {
/* Name needs freeing if FILE_ENTRY_NAME_FREE is set. Otherwise this is a direct pointer to a
* name buffer. */
char *name;
char *description;
uint64_t size;
int64_t time;