[gnome-software/gnome-3-22] trivial: Remove a legacy sanity check that no longer applies



commit 841930a3d75b7ab6a2c92cbab2f28d80b8aae6b8
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 611fd4a..da7bf70 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -534,19 +534,8 @@ gs_app_set_id (GsApp *app, const gchar *id)
 {
        g_autoptr(GMutexLocker) locker = g_mutex_locker_new (&app->mutex);
        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]