diff options
author | Jacques Lucke <jacques@blender.org> | 2020-06-07 12:48:18 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-06-07 12:48:18 +0300 |
commit | ab2b9821fc319c7d8c264c58ff007649984b98ef (patch) | |
tree | dd2dced71ceff56a3ae7df22a99933adf5208d5a /source/blender/blenloader/intern/readfile.c | |
parent | eb3103750394613f2d7625afa230f65445aeb77f (diff) |
Cleanup: remove unused test_pointer_array function
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index b29f3e1a12c..4704b9d9dce 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2476,50 +2476,6 @@ static void link_glob_list(FileData *fd, ListBase *lb) /* for glob data */ lb->last = prev; } -static void test_pointer_array(FileData *fd, void **mat) -{ - int64_t *lpoin, *lmat; - int *ipoin, *imat; - size_t len; - - /* manually convert the pointer array in - * the old dna format to a pointer array in - * the new dna format. - */ - if (*mat) { - len = MEM_allocN_len(*mat) / fd->filesdna->pointer_size; - - if (fd->filesdna->pointer_size == 8 && fd->memsdna->pointer_size == 4) { - ipoin = imat = MEM_malloc_arrayN(len, 4, "newmatar"); - lpoin = *mat; - - while (len-- > 0) { - if ((fd->flags & FD_FLAGS_SWITCH_ENDIAN)) { - BLI_endian_switch_int64(lpoin); - } - *ipoin = (int)((*lpoin) >> 3); - ipoin++; - lpoin++; - } - MEM_freeN(*mat); - *mat = imat; - } - - if (fd->filesdna->pointer_size == 4 && fd->memsdna->pointer_size == 8) { - lpoin = lmat = MEM_malloc_arrayN(len, 8, "newmatar"); - ipoin = *mat; - - while (len-- > 0) { - *lpoin = *ipoin; - ipoin++; - lpoin++; - } - MEM_freeN(*mat); - *mat = lmat; - } - } -} - /** \} */ /* -------------------------------------------------------------------- */ |