summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-app-validate.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-08-22 14:12:14 +0100
committerRichard Hughes <richard@hughsie.com>2016-08-22 14:19:12 +0100
commite83da4ad01e6eaa50b45124706ef9f6b31bcd071 (patch)
tree27cc8aa655510e9a945b8df776f5827db7eedec8 /libappstream-glib/as-app-validate.c
parent47bdeafc778ed1d83bef46ce50963c5513a6cd2d (diff)
downloadappstream-glib-e83da4ad01e6eaa50b45124706ef9f6b31bcd071.tar.gz
Remove the inf parsing from appstream-glib
I don't want to maintain this large chunk of complex code in the main library, especially as it's basically unused except for the validation of .cab files. The latter has a python implmentation as used on the LVFS, so it's really just dead code now. Move the (unused) implementation to libginf for archival, but leave stubs in to avoid upsetting the API/ABI checkers. We can remove the symbols when we next break soname.
Diffstat (limited to 'libappstream-glib/as-app-validate.c')
-rw-r--r--libappstream-glib/as-app-validate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c
index f5f509f..d44c7fe 100644
--- a/libappstream-glib/as-app-validate.c
+++ b/libappstream-glib/as-app-validate.c
@@ -764,8 +764,7 @@ as_app_validate_screenshots (AsApp *app, AsAppValidateHelper *helper)
number_screenshots_min = 0;
/* metainfo and inf do not require any screenshots */
- if (as_app_get_source_kind (app) == AS_APP_SOURCE_KIND_METAINFO ||
- as_app_get_source_kind (app) == AS_APP_SOURCE_KIND_INF)
+ if (as_app_get_source_kind (app) == AS_APP_SOURCE_KIND_METAINFO)
number_screenshots_min = 0;
/* only for AppData and AppStream */