Skip to content

Commit

Permalink
dbg: remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Sep 5, 2023
1 parent 84208bc commit b03ce05
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 72 deletions.
4 changes: 0 additions & 4 deletions include/re_dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ void dbg_close(void);
int dbg_logfile_set(const char *name);
void dbg_handler_set(dbg_print_h *ph, void *arg);
void dbg_printf(int level, const char *fmt, ...);
void dbg_noprintf(const char *fmt, ...);
void dbg_warning(const char *fmt, ...);
void dbg_notice(const char *fmt, ...);
void dbg_info(const char *fmt, ...);
const char *dbg_level_str(int level);

#ifdef __cplusplus
Expand Down
68 changes: 0 additions & 68 deletions src/dbg/dbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,74 +235,6 @@ void dbg_printf(int level, const char *fmt, ...)
}


/**
* Print a formatted debug message to /dev/null
*
* @param fmt Formatted string
*/
void dbg_noprintf(const char *fmt, ...)
{
(void)fmt;
}


/**
* Print a formatted warning message
*
* @param fmt Formatted string
*/
void dbg_warning(const char *fmt, ...)
{
va_list ap;

va_start(ap, fmt);
dbg_vprintf(DBG_WARNING, fmt, ap);
va_end(ap);

va_start(ap, fmt);
dbg_fmt_vprintf(DBG_WARNING, fmt, ap);
va_end(ap);
}


/**
* Print a formatted notice message
*
* @param fmt Formatted string
*/
void dbg_notice(const char *fmt, ...)
{
va_list ap;

va_start(ap, fmt);
dbg_vprintf(DBG_NOTICE, fmt, ap);
va_end(ap);

va_start(ap, fmt);
dbg_fmt_vprintf(DBG_NOTICE, fmt, ap);
va_end(ap);
}


/**
* Print a formatted info message
*
* @param fmt Formatted string
*/
void dbg_info(const char *fmt, ...)
{
va_list ap;

va_start(ap, fmt);
dbg_vprintf(DBG_INFO, fmt, ap);
va_end(ap);

va_start(ap, fmt);
dbg_fmt_vprintf(DBG_INFO, fmt, ap);
va_end(ap);
}


/**
* Get the name of the debug level
*
Expand Down

0 comments on commit b03ce05

Please sign in to comment.