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
This commit is contained in:
Colin Walters 2017-03-29 10:24:35 -04:00 committed by Atomic Bot
parent 5f45ab0bb1
commit ee626c2654
2 changed files with 0 additions and 18 deletions

View File

@ -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);
}

View File

@ -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);