diff options
author | Julian Eisel <julian@blender.org> | 2021-07-30 15:33:39 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-07-30 15:34:33 +0300 |
commit | 4647ffd918225452f25bd865a386e292ba7ebac8 (patch) | |
tree | 2469d79b50823da3b114f48231427f8b60b26719 /source | |
parent | c8b7745172d96cd5ee6aaa431485f93eb9512696 (diff) |
Cleanup: Remove unused file description storage
This isn't used at all in the current File and Asset Browser design.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 4 | ||||
-rw-r--r-- | source/blender/makesdna/DNA_space_types.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 93c27e1fe90..630c9aed157 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -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; diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 1321bd669f1..7290647dbc6 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -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; |