app: remove unused variables and some cleanup in sanity_check_gegl_ops()

This commit is contained in:
Michael Natterer
2013-10-04 14:43:18 +02:00
parent e78c3bf3da
commit 7e536e4465

View File

@ -425,11 +425,8 @@ sanity_check_gegl (void)
static gchar * static gchar *
sanity_check_gegl_ops (void) sanity_check_gegl_ops (void)
{ {
gchar **operations; static const gchar *required_ops[] =
guint n_operations; {
gint i, j;
static const gchar* required_ops [] = {
"gegl:alien-map", "gegl:alien-map",
"gegl:buffer-sink", "gegl:buffer-sink",
"gegl:buffer-source", "gegl:buffer-source",
@ -497,16 +494,20 @@ sanity_check_gegl_ops (void)
"gegl:write-buffer" "gegl:write-buffer"
}; };
gint i;
for (i = 0; i < G_N_ELEMENTS (required_ops); i++) for (i = 0; i < G_N_ELEMENTS (required_ops); i++)
{ {
if (!gegl_has_operation (required_ops[i])) if (! gegl_has_operation (required_ops[i]))
return g_strdup_printf {
("GEGL operation missing!\n\n" return g_strdup_printf
"GIMP requires the GEGL operation \"%s\". \n" ("GEGL operation missing!\n\n"
"This operation cannot be found. Check your \n" "GIMP requires the GEGL operation \"%s\".\n"
"GEGL install and ensure it has been compiled \n" "This operation cannot be found. Check your\n"
"with any dependencies required for GIMP.\n", "GEGL install and ensure it has been compiled\n"
required_ops [i]); "with any dependencies required for GIMP.",
required_ops [i]);
}
} }
return NULL; return NULL;