[totem/wip/hadess/simplify-plugins: 5/18] plugins: Don't use intermediate private struct
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/simplify-plugins: 5/18] plugins: Don't use intermediate private struct
- Date: Mon, 21 Feb 2022 10:20:28 +0000 (UTC)
commit e20e6775808008af08aa09cbc543bb03f50c2882
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 21 09:49:14 2022 +0100
plugins: Don't use intermediate private struct
src/plugins/totem-plugin.h | 6 ------
1 file changed, 6 deletions(-)
---
diff --git a/src/plugins/totem-plugin.h b/src/plugins/totem-plugin.h
index a5d331dd2..a2fc2230d 100644
--- a/src/plugins/totem-plugin.h
+++ b/src/plugins/totem-plugin.h
@@ -52,10 +52,6 @@ G_BEGIN_DECLS
typedef struct { \
PeasExtensionBaseClass parent_class; \
} TypeName##Class; \
- typedef struct { \
- PeasExtensionBase parent; \
- TypeName##Private *priv; \
- } TypeName; \
GType type_name##_get_type (void) G_GNUC_CONST; \
static void impl_activate (PeasActivatable *plugin); \
static void impl_deactivate (PeasActivatable *plugin); \
@@ -69,7 +65,6 @@ G_BEGIN_DECLS
type_name, \
PEAS_TYPE_EXTENSION_BASE, \
0, \
- G_ADD_PRIVATE_DYNAMIC(TypeName) \
G_IMPLEMENT_INTERFACE_DYNAMIC (PEAS_TYPE_ACTIVATABLE, \
peas_activatable_iface_init) \
TYPE_CODE) \
@@ -128,7 +123,6 @@ G_BEGIN_DECLS
static void \
type_name##_init (TypeName *plugin) \
{ \
- plugin->priv = type_name##_get_instance_private (plugin); \
} \
G_MODULE_EXPORT void \
peas_register_types (PeasObjectModule *module) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]