mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
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:
parent
5f45ab0bb1
commit
ee626c2654
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user