Cleanup: remove unreachable return values
This commit is contained in:
@@ -2233,31 +2233,26 @@ static bool filelist_file_cache_block_create(FileList *filelist,
|
|||||||
{
|
{
|
||||||
FileListEntryCache *cache = &filelist->filelist_cache;
|
FileListEntryCache *cache = &filelist->filelist_cache;
|
||||||
|
|
||||||
{
|
|
||||||
int i, idx;
|
int i, idx;
|
||||||
|
|
||||||
for (i = 0, idx = start_index; i < size; i++, idx++, cursor++) {
|
for (i = 0, idx = start_index; i < size; i++, idx++, cursor++) {
|
||||||
FileDirEntry *entry;
|
FileDirEntry *entry;
|
||||||
|
|
||||||
/* That entry might have already been requested and stored in misc cache... */
|
/* That entry might have already been requested and stored in misc cache... */
|
||||||
if ((entry = static_cast<FileDirEntry *>(BLI_ghash_popkey(
|
if ((entry = static_cast<FileDirEntry *>(
|
||||||
cache->misc_entries, POINTER_FROM_INT(idx), nullptr))) == nullptr) {
|
BLI_ghash_popkey(cache->misc_entries, POINTER_FROM_INT(idx), nullptr))) == nullptr) {
|
||||||
entry = filelist_file_create_entry(filelist, idx);
|
entry = filelist_file_create_entry(filelist, idx);
|
||||||
BLI_ghash_insert(cache->uids, POINTER_FROM_UINT(entry->uid), entry);
|
BLI_ghash_insert(cache->uids, POINTER_FROM_UINT(entry->uid), entry);
|
||||||
}
|
}
|
||||||
cache->block_entries[cursor] = entry;
|
cache->block_entries[cursor] = entry;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void filelist_file_cache_block_release(FileList *filelist, const int size, int cursor)
|
static void filelist_file_cache_block_release(FileList *filelist, const int size, int cursor)
|
||||||
{
|
{
|
||||||
FileListEntryCache *cache = &filelist->filelist_cache;
|
FileListEntryCache *cache = &filelist->filelist_cache;
|
||||||
|
|
||||||
{
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < size; i++, cursor++) {
|
for (i = 0; i < size; i++, cursor++) {
|
||||||
@@ -2273,7 +2268,6 @@ static void filelist_file_cache_block_release(FileList *filelist, const int size
|
|||||||
cache->block_entries[cursor] = nullptr;
|
cache->block_entries[cursor] = nullptr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool filelist_file_cache_block(FileList *filelist, const int index)
|
bool filelist_file_cache_block(FileList *filelist, const int index)
|
||||||
|
|||||||
@@ -180,8 +180,6 @@ static bool particle_skip(ParticleInstanceModifierData *pimd, ParticleSystem *ps
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void store_float_in_vcol(MLoopCol *vcol, float float_value)
|
static void store_float_in_vcol(MLoopCol *vcol, float float_value)
|
||||||
|
|||||||
Reference in New Issue
Block a user