[Bf-blender-cvs] [4647ffd9182] master: Cleanup: Remove unused file description storage

Julian Eisel noreply at git.blender.org
Fri Jul 30 14:34:44 CEST 2021


Commit: 4647ffd918225452f25bd865a386e292ba7ebac8
Author: Julian Eisel
Date:   Fri Jul 30 14:33:39 2021 +0200
Branches: master
https://developer.blender.org/rB4647ffd918225452f25bd865a386e292ba7ebac8

Cleanup: Remove unused file description storage

This isn't used at all in the current File and Asset Browser design.

===================================================================

M	source/blender/editors/space_file/filelist.c
M	source/blender/makesdna/DNA_space_types.h

===================================================================

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;



More information about the Bf-blender-cvs mailing list