From 3b1c9db3f8d693a211423c6df9c872db0b0f3043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Wed, 15 Nov 2017 23:31:17 +0000 Subject: [PATCH] Remove gt_na() and gt_fatal() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/common.c | 17 ----------------- src/common.h | 2 -- 2 files changed, 19 deletions(-) diff --git a/src/common.c b/src/common.c index 96593dd..47c208f 100644 --- a/src/common.c +++ b/src/common.c @@ -26,23 +26,6 @@ gt_log(const char *fmt, ...) va_end(ap); } -void -gt_fatal(const char *fmt, ...) -{ - va_list ap; - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - - exit(EXIT_FAILURE); -} - -void -gt_na(const char *name) -{ - gt_log("%s is not available on your platform\n", name); -} - int gt_tohex(char *dst, size_t dst_size, const uint8_t *src, size_t src_size) { diff --git a/src/common.h b/src/common.h index 9ba330a..79f13fa 100644 --- a/src/common.h +++ b/src/common.h @@ -37,8 +37,6 @@ int gt_print (const char *, ...) _printf_(1,2); void gt_log (const char *, ...) _printf_(1,2); -void gt_fatal (const char *, ...) _printf_(1,2) _noreturn_; -void gt_na (const char *); int gt_tohex (char *, size_t, const uint8_t *, size_t); int gt_fromhex (uint8_t *, size_t, const char *, size_t);