mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-12-04 01:51:06 +00:00
remove unused fluid_debug()
This commit is contained in:
parent
02bb14243a
commit
77ad959913
2 changed files with 0 additions and 42 deletions
|
@ -83,31 +83,6 @@ void fluid_sys_config()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsigned int fluid_debug_flags = 0;
|
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
/*
|
|
||||||
* fluid_debug
|
|
||||||
*/
|
|
||||||
int fluid_debug(int level, char * fmt, ...)
|
|
||||||
{
|
|
||||||
if (fluid_debug_flags & level) {
|
|
||||||
fluid_log_function_t fun;
|
|
||||||
va_list args;
|
|
||||||
|
|
||||||
va_start (args, fmt);
|
|
||||||
FLUID_VSNPRINTF (fluid_errbuf, sizeof (fluid_errbuf), fmt, args);
|
|
||||||
va_end (args);
|
|
||||||
|
|
||||||
fun = fluid_log_function[FLUID_DBG];
|
|
||||||
if (fun != NULL) {
|
|
||||||
(*fun)(level, fluid_errbuf, fluid_log_user_data[FLUID_DBG]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Installs a new log function for a specified log level.
|
* Installs a new log function for a specified log level.
|
||||||
* @param level Log level to install handler for.
|
* @param level Log level to install handler for.
|
||||||
|
|
|
@ -73,23 +73,6 @@ void fluid_time_config(void);
|
||||||
char *fluid_strtok (char **str, char *delim);
|
char *fluid_strtok (char **str, char *delim);
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
|
|
||||||
Additional debugging system, separate from the log system. This
|
|
||||||
allows to print selected debug messages of a specific subsystem.
|
|
||||||
*/
|
|
||||||
|
|
||||||
extern unsigned int fluid_debug_flags;
|
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
|
|
||||||
int fluid_debug(int level, char * fmt, ...);
|
|
||||||
|
|
||||||
#else
|
|
||||||
#define fluid_debug
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(__OS2__)
|
#if defined(__OS2__)
|
||||||
#define INCL_DOS
|
#define INCL_DOS
|
||||||
#include <os2.h>
|
#include <os2.h>
|
||||||
|
|
Loading…
Reference in a new issue