[gnome-software] trivial: Remove a legacy sanity check that no longer applies
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Remove a legacy sanity check that no longer applies
- Date: Mon, 31 Oct 2016 16:51:07 +0000 (UTC)
commit b6d6d286652743f74d2d574cd536b4a67807b9e2
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 31 15:13:08 2016 +0000
trivial: Remove a legacy sanity check that no longer applies
src/gs-app.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 7f16977..9b98c1b 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -537,19 +537,8 @@ void
gs_app_set_id (GsApp *app, const gchar *id)
{
g_return_if_fail (GS_IS_APP (app));
-
- /* check for old-style prefix */
- if (id != NULL && g_strstr_len (id, -1, ":") != NULL) {
- g_warning ("Invalid ID of %s -- use "
- "gs_app_set_unique_id() and use the actual "
- "desktop-style ID here instead!", id);
- return;
- }
-
g_free (app->id);
app->id = g_strdup (id);
-
- /* no longer valid */
app->unique_id_valid = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]