[gimp] app: remove unused variables and some cleanup in sanity_check_gegl_ops()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: remove unused variables and some cleanup in sanity_check_gegl_ops()
- Date: Fri, 4 Oct 2013 12:43:49 +0000 (UTC)
commit 7e536e44653781689252bf229d97fe1576091500
Author: Michael Natterer <mitch gimp org>
Date: Fri Oct 4 14:43:18 2013 +0200
app: remove unused variables and some cleanup in sanity_check_gegl_ops()
app/sanity.c | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/app/sanity.c b/app/sanity.c
index 288e6fe..557fddb 100644
--- a/app/sanity.c
+++ b/app/sanity.c
@@ -425,11 +425,8 @@ sanity_check_gegl (void)
static gchar *
sanity_check_gegl_ops (void)
{
- gchar **operations;
- guint n_operations;
- gint i, j;
-
- static const gchar* required_ops [] = {
+ static const gchar *required_ops[] =
+ {
"gegl:alien-map",
"gegl:buffer-sink",
"gegl:buffer-source",
@@ -497,16 +494,20 @@ sanity_check_gegl_ops (void)
"gegl:write-buffer"
};
+ gint i;
+
for (i = 0; i < G_N_ELEMENTS (required_ops); i++)
{
- if (!gegl_has_operation (required_ops[i]))
- return g_strdup_printf
- ("GEGL operation missing!\n\n"
- "GIMP requires the GEGL operation \"%s\". \n"
- "This operation cannot be found. Check your \n"
- "GEGL install and ensure it has been compiled \n"
- "with any dependencies required for GIMP.\n",
- required_ops [i]);
+ if (! gegl_has_operation (required_ops[i]))
+ {
+ return g_strdup_printf
+ ("GEGL operation missing!\n\n"
+ "GIMP requires the GEGL operation \"%s\".\n"
+ "This operation cannot be found. Check your\n"
+ "GEGL install and ensure it has been compiled\n"
+ "with any dependencies required for GIMP.",
+ required_ops [i]);
+ }
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]