[gnome-commander/gcmd-1-2-8] GnomeCmdFileInfo: do not allocate memory for non-existent priv member
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] GnomeCmdFileInfo: do not allocate memory for non-existent priv member
- Date: Sun, 8 Aug 2010 09:36:30 +0000 (UTC)
commit ff79c50ea90649c28d6318d0b721af6c7c20910f
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Aug 8 11:36:02 2010 +0200
GnomeCmdFileInfo: do not allocate memory for non-existent priv member
libgcmd/gnome-cmd-file-info.cc | 11 -----------
libgcmd/gnome-cmd-file-info.h | 3 ---
2 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-file-info.cc b/libgcmd/gnome-cmd-file-info.cc
index 847fab4..d4f6c03 100644
--- a/libgcmd/gnome-cmd-file-info.cc
+++ b/libgcmd/gnome-cmd-file-info.cc
@@ -24,13 +24,6 @@
static GtkObjectClass *parent_class = NULL;
-struct _GnomeCmdFileInfoPrivate
-{
-#ifdef __sun
- gchar dummy; // Sun's forte compiler does not like empty structs
-#endif
-};
-
/*******************************
* Gtk class implementation
@@ -45,8 +38,6 @@ destroy (GtkObject *object)
if (file->uri)
gnome_vfs_uri_unref (file->uri);
- g_free (file->priv);
-
if (GTK_OBJECT_CLASS (parent_class)->destroy)
(*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
}
@@ -69,8 +60,6 @@ init (GnomeCmdFileInfo *file)
{
file->info = NULL;
file->uri = NULL;
-
- file->priv = g_new0 (GnomeCmdFileInfoPrivate, 1);
}
diff --git a/libgcmd/gnome-cmd-file-info.h b/libgcmd/gnome-cmd-file-info.h
index cbf87cc..7fd2ed7 100644
--- a/libgcmd/gnome-cmd-file-info.h
+++ b/libgcmd/gnome-cmd-file-info.h
@@ -28,7 +28,6 @@
typedef struct _GnomeCmdFileInfo GnomeCmdFileInfo;
typedef struct _GnomeCmdFileInfoClass GnomeCmdFileInfoClass;
-typedef struct _GnomeCmdFileInfoPrivate GnomeCmdFileInfoPrivate;
struct _GnomeCmdFileInfo
{
@@ -36,8 +35,6 @@ struct _GnomeCmdFileInfo
GnomeVFSURI *uri;
GnomeVFSFileInfo *info;
-
- GnomeCmdFileInfoPrivate *priv;
};
struct _GnomeCmdFileInfoClass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]