From 722700d90e927e53d5fd2ef9197fedfd22ddc636 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 29 May 2024 11:56:43 -0400 Subject: [PATCH] Remove unused ErrorLocation() --- src/common.h | 3 --- src/main.c | 5 ----- 2 files changed, 8 deletions(-) diff --git a/src/common.h b/src/common.h index 6faab9e..8e6e574 100644 --- a/src/common.h +++ b/src/common.h @@ -26,7 +26,4 @@ /* Returns TRUE if the first 'c' characters of strings 'a' and 'b' are equal. */ #define STREQ_LEN(a, b, c) (strncmp((a), (b), (c)) == 0) -inline void -ErrorLocation(const char *file, int line); - #endif /* COMMON_H */ diff --git a/src/main.c b/src/main.c index a1720b4..caeb07e 100644 --- a/src/main.c +++ b/src/main.c @@ -25,11 +25,6 @@ #include "batmon.h" #include "main.h" -inline void ErrorLocation(const char *file, int line) -{ - fprintf(stderr, " Error in file \"%s\" at line #%d\n", file, line); -} - /******************************************************************************* * Main function ******************************************************************************/ -- 2.20.1