From f2904ad94d27e0c710a3f2abebab495f615a1d93 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Wed, 12 Sep 2012 20:34:25 +1000 Subject: [PATCH] validate: Do not warn about lack of a registered main category See http://cgit.freedesktop.org/xdg/xdg-specs/commit?id=5a9f05d86973 --- src/validate.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/validate.c b/src/validate.c index 8e0d869..d39d587 100644 --- a/src/validate.c +++ b/src/validate.c @@ -1481,7 +1481,6 @@ handle_categories_key (kf_validator *kf, GHashTable *hashtable; int i; unsigned int j; - gboolean main_category_present; handle_key_for_application (kf, locale_key, value); @@ -1514,9 +1513,6 @@ handle_categories_key (kf_validator *kf, g_hash_table_insert (hashtable, categories[i], categories[i]); } - /* second pass */ - main_category_present = FALSE; - for (i = 0; categories[i]; i++) { unsigned int k; @@ -1542,9 +1538,6 @@ handle_categories_key (kf_validator *kf, continue; } - if (registered_categories[j].main) - main_category_present = TRUE; - if (registered_categories[j].deprecated) { if (!kf->no_deprecated_warnings) print_warning (kf, "value \"%s\" for key \"%s\" in group \"%s\" " @@ -1609,13 +1602,6 @@ handle_categories_key (kf_validator *kf, g_strfreev (categories); g_hash_table_destroy (hashtable); - if (!main_category_present) { - print_future_fatal (kf, "value \"%s\" for key \"%s\" in group \"%s\" " - "does not contain a registered main category\n", - value, locale_key, kf->current_group, categories[i]); - retval = FALSE; - } - return retval; } -- 1.7.12