summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-29 07:44:48 +0200
committerJasmine Hassan <[email protected]>2012-10-29 15:23:13 +0200
commit7039b007c196b8733f78a213ab3be7828c7a967c (patch)
treea88a4442992e6d39653b302dceca5d22082e89de /src
parent5c7c3b4bf19b2c53cb20519999ab23c6ece2ac3d (diff)
downloadmate-user-share-7039b007c196b8733f78a213ab3be7828c7a967c.tar.bz2
mate-user-share-7039b007c196b8733f78a213ab3be7828c7a967c.tar.xz
[share-extension] remove empty finalize method & private structure
share-extension: remove empty finalize method https://bugzilla.gnome.org/show_bug.cgi?id=676515 http://git.gnome.org/browse/gnome-user-share/commit/?id=48a3b06deb29042731350fd24815e9d56ad1df4a share-extension: remove empty private structure https://bugzilla.gnome.org/show_bug.cgi?id=676515 http://git.gnome.org/browse/gnome-user-share/commit/?id=aa18c570a147b1488507aaff3a3018485a210a24
Diffstat (limited to 'src')
-rw-r--r--src/share-extension.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/share-extension.c b/src/share-extension.c
index 8f08392..4c44be3 100644
--- a/src/share-extension.c
+++ b/src/share-extension.c
@@ -37,12 +37,9 @@
#define CAJA_USER_SHARE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CAJA_TYPE_USER_SHARE, CajaUserShare))
#define CAJA_IS_USER_SHARE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CAJA_TYPE_USER_SHARE))
-typedef struct _CajaUserSharePrivate CajaUserSharePrivate;
-
typedef struct
{
GObject parent_slot;
- CajaUserSharePrivate *priv;
} CajaUserShare;
typedef struct
@@ -50,18 +47,9 @@ typedef struct
GObjectClass parent_slot;
} CajaUserShareClass;
-#define CAJA_USER_SHARE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), CAJA_TYPE_USER_SHARE, CajaUserSharePrivate))
-
-struct _CajaUserSharePrivate
-{
-};
-
static GType caja_user_share_get_type (void);
static void caja_user_share_register_type (GTypeModule *module);
-static GObjectClass *parent_class;
-
-
static void
launch_process (char **argv, GtkWindow *parent)
{
@@ -178,34 +166,13 @@ caja_user_share_location_widget_provider_iface_init (CajaLocationWidgetProviderI
static void
caja_user_share_instance_init (CajaUserShare *share)
{
- share->priv = CAJA_USER_SHARE_GET_PRIVATE (share);
-}
-static void
-caja_user_share_finalize (GObject *object)
-{
- CajaUserShare *share;
-
- g_return_if_fail (object != NULL);
- g_return_if_fail (CAJA_IS_USER_SHARE (object));
-
- share = CAJA_USER_SHARE (object);
-
- g_return_if_fail (share->priv != NULL);
-
- G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
caja_user_share_class_init (CajaUserShareClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- parent_class = g_type_class_peek_parent (klass);
-
- object_class->finalize = caja_user_share_finalize;
- g_type_class_add_private (klass, sizeof (CajaUserSharePrivate));
}
static GType share_type = 0;