Cleanup: remove used FileData flag

Pull Request: https://projects.blender.org/blender/blender/pulls/124784
This commit is contained in:
Jacques Lucke
2024-07-17 10:39:19 +02:00
parent 87bee7a431
commit 136148a668
2 changed files with 2 additions and 4 deletions

View File

@@ -1367,7 +1367,7 @@ void blo_filedata_free(FileData *fd)
if (fd->globmap) {
oldnewmap_free(fd->globmap);
}
if (fd->libmap && !(fd->flags & FD_FLAGS_NOT_MY_LIBMAP)) {
if (fd->libmap) {
oldnewmap_free(fd->libmap);
}
if (fd->old_idmap_uid != nullptr) {

View File

@@ -43,10 +43,8 @@ enum eFileDataFlag {
FD_FLAGS_POINTSIZE_DIFFERS = 1 << 2,
FD_FLAGS_FILE_OK = 1 << 3,
FD_FLAGS_IS_MEMFILE = 1 << 4,
/* XXX Unused in practice (checked once but never set). */
FD_FLAGS_NOT_MY_LIBMAP = 1 << 5,
};
ENUM_OPERATORS(eFileDataFlag, FD_FLAGS_NOT_MY_LIBMAP)
ENUM_OPERATORS(eFileDataFlag, FD_FLAGS_IS_MEMFILE)
/* Disallow since it's 32bit on ms-windows. */
#ifdef __GNUC__