Skip to content

Commit

Permalink
Eliminate the deprecated mc_abort() function and MC_ABORT macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawicz committed Mar 23, 2014
1 parent f9136f6 commit 784534a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
15 changes: 0 additions & 15 deletions debug.c
Expand Up @@ -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;
Expand Down
8 changes: 0 additions & 8 deletions debug.h
Expand Up @@ -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, ...);
Expand All @@ -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
Expand Down

0 comments on commit 784534a

Please sign in to comment.