Cleanup: Readfile: Remove unused function.
This commit is contained in:
@@ -40,9 +40,6 @@
|
||||
# include "BLI_winstuff.h"
|
||||
#endif
|
||||
|
||||
/* local prototypes --------------------- */
|
||||
void BLO_blendhandle_print_sizes(BlendHandle *bh, void *fp);
|
||||
|
||||
/* Access routines used by file-selector. */
|
||||
|
||||
void BLO_datablock_info_free(BLODataBlockInfo *datablock_info)
|
||||
@@ -82,41 +79,6 @@ BlendHandle *BLO_blendhandle_from_memory(const void *mem,
|
||||
return bh;
|
||||
}
|
||||
|
||||
void BLO_blendhandle_print_sizes(BlendHandle *bh, void *fp)
|
||||
{
|
||||
FileData *fd = (FileData *)bh;
|
||||
BHead *bhead;
|
||||
|
||||
fprintf(static_cast<FILE *>(fp), "[\n");
|
||||
for (bhead = blo_bhead_first(fd); bhead; bhead = blo_bhead_next(fd, bhead)) {
|
||||
if (bhead->code == BLO_CODE_ENDB) {
|
||||
break;
|
||||
}
|
||||
|
||||
const SDNA_Struct *struct_info = fd->filesdna->structs[bhead->SDNAnr];
|
||||
const char *name = fd->filesdna->types[struct_info->type];
|
||||
char buf[4];
|
||||
|
||||
buf[0] = (bhead->code >> 24) & 0xFF;
|
||||
buf[1] = (bhead->code >> 16) & 0xFF;
|
||||
buf[2] = (bhead->code >> 8) & 0xFF;
|
||||
buf[3] = (bhead->code >> 0) & 0xFF;
|
||||
|
||||
buf[0] = buf[0] ? buf[0] : ' ';
|
||||
buf[1] = buf[1] ? buf[1] : ' ';
|
||||
buf[2] = buf[2] ? buf[2] : ' ';
|
||||
buf[3] = buf[3] ? buf[3] : ' ';
|
||||
|
||||
fprintf(static_cast<FILE *>(fp),
|
||||
"['%.4s', '%s', %d, %ld ],\n",
|
||||
buf,
|
||||
name,
|
||||
bhead->nr,
|
||||
(long int)(bhead->len + sizeof(BHead)));
|
||||
}
|
||||
fprintf(static_cast<FILE *>(fp), "]\n");
|
||||
}
|
||||
|
||||
LinkNode *BLO_blendhandle_get_datablock_names(BlendHandle *bh,
|
||||
int ofblocktype,
|
||||
const bool use_assets_only,
|
||||
|
||||
Reference in New Issue
Block a user