[gnome-software/wip/hughsie/unique_id: 10/10] Remove the now-unused	gs_app_get_id_no_prefix()
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-software/wip/hughsie/unique_id: 10/10] Remove the now-unused	gs_app_get_id_no_prefix()
- Date: Wed,  3 Aug 2016 15:09:42 +0000 (UTC)
commit 1411ad6c24b637e3a081ba20a67288d0c85cb2a5
Author: Richard Hughes <richard hughsie com>
Date:   Wed Aug 3 15:16:50 2016 +0100
    Remove the now-unused gs_app_get_id_no_prefix()
 src/gs-app.c |   21 ---------------------
 src/gs-app.h |    1 -
 2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index cc8db52..180f681 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -499,27 +499,6 @@ gs_app_get_id (GsApp *app)
 }
 
 /**
- * gs_app_get_id_no_prefix:
- * @app: a #GsApp
- *
- * Gets the application ID without any prefix set.
- *
- * Returns: The whole ID, e.g. gimp.desktop" or "org.gnome.Gimp.desktop"
- **/
-const gchar *
-gs_app_get_id_no_prefix (GsApp *app)
-{
-       gchar *tmp;
-       g_return_val_if_fail (GS_IS_APP (app), NULL);
-       if (app->id == NULL)
-               return NULL;
-       tmp = g_strrstr (app->id, ":");
-       if (tmp != NULL)
-               return tmp + 1;
-       return app->id;
-}
-
-/**
  * gs_app_set_id:
  * @app: a #GsApp
  * @id: a application ID, e.g. "gimp.desktop"
diff --git a/src/gs-app.h b/src/gs-app.h
index c65e570..f6e1672 100644
--- a/src/gs-app.h
+++ b/src/gs-app.h
@@ -103,7 +103,6 @@ gchar               *gs_app_to_string               (GsApp          *app);
 const gchar    *gs_app_get_id                  (GsApp          *app);
 void            gs_app_set_id                  (GsApp          *app,
                                                 const gchar    *id);
-const gchar    *gs_app_get_id_no_prefix        (GsApp          *app);
 AsAppKind       gs_app_get_kind                (GsApp          *app);
 void            gs_app_set_kind                (GsApp          *app,
                                                 AsAppKind       kind);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]