[Bf-blender-cvs] [f605ce7e9af] master: Cleanup: Remove unused file-list array info members

Julian Eisel noreply at git.blender.org
Wed Oct 20 12:32:19 CEST 2021


Commit: f605ce7e9afcdf473ef6cd9180c25f1981846256
Author: Julian Eisel
Date:   Wed Oct 20 12:30:11 2021 +0200
Branches: master
https://developer.blender.org/rBf605ce7e9afcdf473ef6cd9180c25f1981846256

Cleanup: Remove unused file-list array info members

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

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 fc502b065f3..ab274fcea62 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -1470,8 +1470,6 @@ static void filelist_direntryarr_free(FileDirEntryArr *array)
 #endif
   array->nbr_entries = FILEDIR_NBR_ENTRIES_UNSET;
   array->nbr_entries_filtered = FILEDIR_NBR_ENTRIES_UNSET;
-  array->entry_idx_start = -1;
-  array->entry_idx_end = -1;
 }
 
 static void filelist_intern_entry_free(FileListInternEntry *entry)
@@ -3582,8 +3580,7 @@ static void filelist_readjob_main_assets(FileListReadJob *job_params,
 
     BLI_movelisttolist(&filelist->filelist.entries, &tmp_entries);
     filelist->filelist.nbr_entries += nbr_entries;
-    filelist->filelist.nbr_entries_filtered = filelist->filelist.entry_idx_start =
-        filelist->filelist.entry_idx_end = -1;
+    filelist->filelist.nbr_entries_filtered = -1;
   }
 }
 
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index a75f52a5036..d0b95d5d1d3 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -1150,7 +1150,6 @@ typedef struct FileDirEntryArr {
   ListBase entries;
   int nbr_entries;
   int nbr_entries_filtered;
-  int entry_idx_start, entry_idx_end;
 
   /** FILE_MAX. */
   char root[1024];



More information about the Bf-blender-cvs mailing list