image definition: Drop unused struct

We no longer support stock images.
This commit is contained in:
Matthias Clasen 2017-12-01 10:12:17 -05:00
parent 2218020db9
commit 6de5cd57e7

View File

@ -20,7 +20,6 @@
#include "gtkimagedefinitionprivate.h"
typedef struct _GtkImageDefinitionEmpty GtkImageDefinitionEmpty;
typedef struct _GtkImageDefinitionStock GtkImageDefinitionStock;
typedef struct _GtkImageDefinitionIconName GtkImageDefinitionIconName;
typedef struct _GtkImageDefinitionGIcon GtkImageDefinitionGIcon;
typedef struct _GtkImageDefinitionSurface GtkImageDefinitionSurface;
@ -31,13 +30,6 @@ struct _GtkImageDefinitionEmpty {
gint ref_count;
};
struct _GtkImageDefinitionStock {
GtkImageType type;
gint ref_count;
char *id;
};
struct _GtkImageDefinitionIconName {
GtkImageType type;
gint ref_count;
@ -70,7 +62,6 @@ union _GtkImageDefinition
{
GtkImageType type;
GtkImageDefinitionEmpty empty;
GtkImageDefinitionStock stock;
GtkImageDefinitionIconName icon_name;
GtkImageDefinitionGIcon gicon;
GtkImageDefinitionSurface surface;
@ -90,7 +81,6 @@ gtk_image_definition_alloc (GtkImageType type)
{
static gsize sizes[] = {
sizeof (GtkImageDefinitionEmpty),
sizeof (GtkImageDefinitionStock),
sizeof (GtkImageDefinitionIconName),
sizeof (GtkImageDefinitionGIcon),
sizeof (GtkImageDefinitionSurface),