[libpeas] Drop PeasPluginInfo:file as it is unused



commit fec5441d795869d5bbf4d86204019efe937a43d4
Author: Garrett Regier <alias301 gmail com>
Date:   Thu Feb 17 20:11:13 2011 -0800

    Drop PeasPluginInfo:file as it is unused

 libpeas/peas-plugin-info-priv.h |    1 -
 libpeas/peas-plugin-info.c      |    3 ---
 2 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/libpeas/peas-plugin-info-priv.h b/libpeas/peas-plugin-info-priv.h
index 245a8b7..eca5ce8 100644
--- a/libpeas/peas-plugin-info-priv.h
+++ b/libpeas/peas-plugin-info-priv.h
@@ -29,7 +29,6 @@ struct _PeasPluginInfo {
   /*< private >*/
   gint refcount;
 
-  gchar *file;
   gchar *module_dir;
   gchar *data_dir;
 
diff --git a/libpeas/peas-plugin-info.c b/libpeas/peas-plugin-info.c
index d5538cb..3b59a62 100644
--- a/libpeas/peas-plugin-info.c
+++ b/libpeas/peas-plugin-info.c
@@ -73,7 +73,6 @@ _peas_plugin_info_unref (PeasPluginInfo *info)
   if (!g_atomic_int_dec_and_test (&info->refcount))
     return;
 
-  g_free (info->file);
   g_free (info->module_dir);
   g_free (info->data_dir);
   g_free (info->module_name);
@@ -144,7 +143,6 @@ _peas_plugin_info_new (const gchar *filename,
 
   info = g_new0 (PeasPluginInfo, 1);
   info->refcount = 1;
-  info->file = g_strdup (filename);
 
   plugin_file = g_key_file_new ();
   if (!g_key_file_load_from_file (plugin_file, filename, G_KEY_FILE_NONE, NULL))
@@ -267,7 +265,6 @@ _peas_plugin_info_new (const gchar *filename,
   return info;
 
 error:
-  g_free (info->file);
   g_free (info->module_name);
   g_free (info->name);
   g_free (info);



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