mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
Remove useless code, it's identical for both LE & BE
This commit is contained in:
parent
7e238c5438
commit
82454b9fd5
1 changed files with 0 additions and 27 deletions
|
@ -2030,8 +2030,6 @@ fluid_sample_import_sfont(fluid_sample_t* sample, SFSample* sfsample, fluid_defs
|
|||
equivalent to the matching ID list in memory regardless of LE/BE machine
|
||||
*/
|
||||
|
||||
#if FLUID_IS_BIG_ENDIAN
|
||||
|
||||
#define READCHUNK(var,fd) G_STMT_START { \
|
||||
if (!safe_fread(var, 8, fd)) \
|
||||
return(FAIL); \
|
||||
|
@ -2052,31 +2050,6 @@ fluid_sample_import_sfont(fluid_sample_t* sample, SFSample* sfsample, fluid_defs
|
|||
var = GINT16_FROM_LE(_temp); \
|
||||
} G_STMT_END
|
||||
|
||||
#else
|
||||
|
||||
#define READCHUNK(var,fd) G_STMT_START { \
|
||||
if (!safe_fread(var, 8, fd)) \
|
||||
return(FAIL); \
|
||||
((SFChunk *)(var))->size = GUINT32_FROM_LE(((SFChunk *)(var))->size); \
|
||||
} G_STMT_END
|
||||
|
||||
#define READD(var,fd) G_STMT_START { \
|
||||
unsigned int _temp; \
|
||||
if (!safe_fread(&_temp, 4, fd)) \
|
||||
return(FAIL); \
|
||||
var = GINT32_FROM_LE(_temp); \
|
||||
} G_STMT_END
|
||||
|
||||
#define READW(var,fd) G_STMT_START { \
|
||||
unsigned short _temp; \
|
||||
if (!safe_fread(&_temp, 2, fd)) \
|
||||
return(FAIL); \
|
||||
var = GINT16_FROM_LE(_temp); \
|
||||
} G_STMT_END
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#define READID(var,fd) G_STMT_START { \
|
||||
if (!safe_fread(var, 4, fd)) \
|
||||
return(FAIL); \
|
||||
|
|
Loading…
Reference in a new issue