[gnome-software: 1/15] gs-app-tile: Drop gs_app_tile_new() as it’s an abstract class




commit bbc6d982a02d9182d5bffe4a71fb6cba4eeac7b4
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Apr 20 13:26:37 2021 +0100

    gs-app-tile: Drop gs_app_tile_new() as it’s an abstract class
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gs-app-tile.c | 8 --------
 src/gs-app-tile.h | 1 -
 2 files changed, 9 deletions(-)
---
diff --git a/src/gs-app-tile.c b/src/gs-app-tile.c
index 50ee7c9d7..8e2a70a54 100644
--- a/src/gs-app-tile.c
+++ b/src/gs-app-tile.c
@@ -103,11 +103,3 @@ gs_app_tile_init (GsAppTile *self)
        GsAppTilePrivate *priv = gs_app_tile_get_instance_private (self);
        priv->app_state_changed_idle_id = 0;
 }
-
-GtkWidget *
-gs_app_tile_new (GsApp *app)
-{
-       GsAppTile *self = g_object_new (GS_TYPE_APP_TILE, NULL);
-       gs_app_tile_set_app (self, app);
-       return GTK_WIDGET (self);
-}
diff --git a/src/gs-app-tile.h b/src/gs-app-tile.h
index f1e28a41c..37c77ef7d 100644
--- a/src/gs-app-tile.h
+++ b/src/gs-app-tile.h
@@ -25,7 +25,6 @@ struct _GsAppTileClass
        void                     (*refresh)             (GsAppTile      *self);
 };
 
-GtkWidget      *gs_app_tile_new        (GsApp *app);
 GsApp          *gs_app_tile_get_app    (GsAppTile      *self);
 void            gs_app_tile_set_app    (GsAppTile      *self,
                                         GsApp          *app);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]