Eliminate the deprecated mc_abort() function and MC_ABORT macro.

This commit is contained in:
Eric Haszlakiewicz
2014-03-22 21:48:34 -04:00
parent f9136f6852
commit 784534a31f
2 changed files with 0 additions and 23 deletions

15
debug.c
View File

@@ -41,21 +41,6 @@ extern void mc_set_syslog(int syslog)
_syslog = syslog;
}
void mc_abort(const char *msg, ...)
{
va_list ap;
va_start(ap, msg);
#if HAVE_VSYSLOG
if(_syslog) {
vsyslog(LOG_ERR, msg, ap);
} else
#endif
vprintf(msg, ap);
va_end(ap);
exit(1);
}
void mc_debug(const char *msg, ...)
{
va_list ap;

View File

@@ -24,10 +24,6 @@ extern int mc_get_debug(void);
extern void mc_set_syslog(int syslog);
/**
* @deprecated Use mc_error(), and return an appropriate error.
*/
extern void mc_abort(const char *msg, ...);
extern void mc_debug(const char *msg, ...);
extern void mc_error(const char *msg, ...);
extern void mc_info(const char *msg, ...);
@@ -52,10 +48,6 @@ extern void mc_info(const char *msg, ...);
#endif
/**
* @deprecated Use MC_ERROR(), and return an appropriate error.
*/
#define MC_ABORT(x, ...) mc_abort(x, ##__VA_ARGS__)
#define MC_ERROR(x, ...) mc_error(x, ##__VA_ARGS__)
#ifdef MC_MAINTAINER_MODE