diff options
author | monsta <[email protected]> | 2017-12-22 21:01:59 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-12-22 21:01:59 +0300 |
commit | d12302def2b23e124509f54afd0d9da49651d9f3 (patch) | |
tree | ea045e8c8fbf1aabbd7d9580387ae7b67342497f /libslab/mate-utils.c | |
parent | 8d737c695f37a5bb0ad5ded56a44777249624cea (diff) | |
download | mate-control-center-d12302def2b23e124509f54afd0d9da49651d9f3.tar.bz2 mate-control-center-d12302def2b23e124509f54afd0d9da49651d9f3.tar.xz |
libslab: remove a bunch of unused code
Diffstat (limited to 'libslab/mate-utils.c')
-rw-r--r-- | libslab/mate-utils.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/libslab/mate-utils.c b/libslab/mate-utils.c index c3de6a83..90dd9320 100644 --- a/libslab/mate-utils.c +++ b/libslab/mate-utils.c @@ -69,29 +69,3 @@ load_image_by_id (GtkImage * image, GtkIconSize size, const gchar * image_id) return icon_exists; } - -void -handle_g_error (GError ** error, const gchar * msg_format, ...) -{ - gchar *msg; - va_list args; - - va_start (args, msg_format); - msg = g_strdup_vprintf (msg_format, args); - va_end (args); - - if (*error) - { - g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, - "\nGError raised: [%s]\nuser_message: [%s]\n", (*error)->message, msg); - - g_error_free (*error); - - *error = NULL; - } - else - g_log (G_LOG_DOMAIN, G_LOG_LEVEL_WARNING, "\nerror raised: [%s]\n", msg); - - g_free (msg); -} - |