Remove unused avrdude_message()

This commit is contained in:
stefanrueger
2024-03-29 19:55:34 +13:00
parent 34366a6b9d
commit d91a48242e
2 changed files with 0 additions and 14 deletions

View File

@@ -40,7 +40,6 @@ extern int quell_progress; // Quell progress report -q, reduce effective verbo
extern const char *partdesc; // Part -p string
extern const char *pgmid; // Programmer -c string
int avrdude_message(int msglvl, const char *format, ...);
int avrdude_message2(FILE *fp, int lno, const char *file, const char *func, int msgmode, int msglvl, const char *format, ...);
#define MSG_EXT_ERROR (-3) // OS-type error, no -v option, can be suppressed with -qqqqq

View File

@@ -57,19 +57,6 @@ char progbuf[PATH_MAX]; /* temporary buffer of spaces the same
length as progname; used for lining up
multiline messages */
// Old (deprecated) message routine
int avrdude_message(int msglvl, const char *format, ...)
{
int rc = 0;
va_list ap;
if (verbose >= msglvl) {
va_start(ap, format);
rc = vfprintf(stderr, format, ap);
va_end(ap);
}
return rc;
}
static const char *avrdude_message_type(int msglvl) {
switch(msglvl) {
case MSG_EXT_ERROR: return "OS error";