From ee626c2654b877f5ae6771933330c381efa7e802 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 29 Mar 2017 10:24:35 -0400 Subject: [PATCH] libutil: Delete some unused error handling APIs The first one is better as `err`, the second might as well just call `err` too. Closes: #767 Approved by: jlebon --- src/libotutil/ot-unix-utils.c | 14 -------------- src/libotutil/ot-unix-utils.h | 4 ---- 2 files changed, 18 deletions(-) diff --git a/src/libotutil/ot-unix-utils.c b/src/libotutil/ot-unix-utils.c index 4f659a27..46dd346e 100644 --- a/src/libotutil/ot-unix-utils.c +++ b/src/libotutil/ot-unix-utils.c @@ -121,17 +121,3 @@ ot_util_path_split_validate (const char *path, out: return ret; } - -void -ot_util_fatal_literal (const char *msg) -{ - g_printerr ("%s\n", msg); - exit (EXIT_FAILURE); -} - -void -ot_util_fatal_gerror (GError *error) -{ - g_assert (error != NULL); - ot_util_fatal_literal (error->message); -} diff --git a/src/libotutil/ot-unix-utils.h b/src/libotutil/ot-unix-utils.h index 0547a54e..817e6fd3 100644 --- a/src/libotutil/ot-unix-utils.h +++ b/src/libotutil/ot-unix-utils.h @@ -36,10 +36,6 @@ G_BEGIN_DECLS -void ot_util_fatal_literal (const char *msg) G_GNUC_NORETURN; - -void ot_util_fatal_gerror (GError *error) G_GNUC_NORETURN; - gboolean ot_util_filename_validate (const char *name, GError **error); gboolean ot_util_path_split_validate (const char *path, GPtrArray **out_components, GError **error);