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;
|
||||
|
||||
{
|
||||
int i, idx;
|
||||
|
||||
for (i = 0, idx = start_index; i < size; i++, idx++, cursor++) {
|
||||
FileDirEntry *entry;
|
||||
|
||||
/* That entry might have already been requested and stored in misc cache... */
|
||||
if ((entry = static_cast<FileDirEntry *>(BLI_ghash_popkey(
|
||||
cache->misc_entries, POINTER_FROM_INT(idx), nullptr))) == nullptr) {
|
||||
if ((entry = static_cast<FileDirEntry *>(
|
||||
BLI_ghash_popkey(cache->misc_entries, POINTER_FROM_INT(idx), nullptr))) == nullptr) {
|
||||
entry = filelist_file_create_entry(filelist, idx);
|
||||
BLI_ghash_insert(cache->uids, POINTER_FROM_UINT(entry->uid), entry);
|
||||
}
|
||||
cache->block_entries[cursor] = entry;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void filelist_file_cache_block_release(FileList *filelist, const int size, int cursor)
|
||||
{
|
||||
FileListEntryCache *cache = &filelist->filelist_cache;
|
||||
|
||||
{
|
||||
int i;
|
||||
|
||||
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;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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 false;
|
||||
}
|
||||
|
||||
static void store_float_in_vcol(MLoopCol *vcol, float float_value)
|
||||
|
||||
Reference in New Issue
Block a user