[giggle] Remove unused variables



commit cb7dff8e9721493321f00bae490c1a565a268116
Author: Javier Jardón <jjardon gnome org>
Date:   Fri Apr 1 14:06:40 2011 +0100

    Remove unused variables

 libgiggle-git/giggle-git-authors.c     |   13 -------------
 libgiggle-git/giggle-git-config-read.c |    8 --------
 libgiggle-git/giggle-git-refs.c        |   12 ------------
 libgiggle/giggle-remote-branch.c       |    3 ---
 libgiggle/giggle-remote.c              |    7 -------
 src/giggle-avatar-cache.c              |    4 ----
 src/giggle-file-list.c                 |   12 ------------
 src/giggle-input-dialog.c              |    3 ---
 src/giggle-remote-editor.c             |    7 -------
 src/giggle-rev-list-view.c             |   10 ----------
 10 files changed, 0 insertions(+), 79 deletions(-)
---
diff --git a/libgiggle-git/giggle-git-authors.c b/libgiggle-git/giggle-git-authors.c
index 7f04c82..985abc6 100644
--- a/libgiggle-git/giggle-git-authors.c
+++ b/libgiggle-git/giggle-git-authors.c
@@ -168,9 +168,6 @@ giggle_git_authors_class_init (GiggleGitAuthorsClass *class)
 static void
 giggle_git_authors_init (GiggleGitAuthors *git_authors)
 {
-	GiggleGitAuthorsPriv *priv;
-
-	priv = GET_PRIV (git_authors);
 }
 
 static void
@@ -193,10 +190,6 @@ git_authors_get_property (GObject    *object,
 		    GValue     *value,
 		    GParamSpec *pspec)
 {
-	GiggleGitAuthorsPriv *priv;
-
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
@@ -210,10 +203,6 @@ git_authors_set_property (GObject      *object,
 		    const GValue *value,
 		    GParamSpec   *pspec)
 {
-	GiggleGitAuthorsPriv *priv;
-
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
@@ -261,7 +250,6 @@ authors_handle_output (GiggleJob   *job,
 	GiggleGitAuthorsPriv *priv;
 	GHashTable           *authors_by_name;
 	GHashTable           *authors_by_email;
-	GList                *authors;
 	gchar               **lines;
 	gchar               **line;
 
@@ -272,7 +260,6 @@ authors_handle_output (GiggleJob   *job,
 	authors_by_name  = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
 	authors_by_email = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
 
-	authors = NULL;
 	for (line = lines; line && *line; line++) {
 		if (g_str_has_prefix (*line, "Author: ")) {
 			GiggleAuthor* author = giggle_author_new_from_string (*line + strlen ("Author: "));
diff --git a/libgiggle-git/giggle-git-config-read.c b/libgiggle-git/giggle-git-config-read.c
index 16fb228..33dcb87 100644
--- a/libgiggle-git/giggle-git-config-read.c
+++ b/libgiggle-git/giggle-git-config-read.c
@@ -98,10 +98,6 @@ git_config_read_get_property (GObject    *object,
 			      GValue     *value,
 			      GParamSpec *pspec)
 {
-	GiggleGitConfigReadPriv *priv;
-
-	priv = GET_PRIV (object);
-	
 	switch (param_id) {
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
@@ -115,10 +111,6 @@ git_config_read_set_property (GObject      *object,
 			      const GValue *value,
 			      GParamSpec   *pspec)
 {
-	GiggleGitConfigReadPriv *priv;
-
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
diff --git a/libgiggle-git/giggle-git-refs.c b/libgiggle-git/giggle-git-refs.c
index 32b8c07..ef75019 100644
--- a/libgiggle-git/giggle-git-refs.c
+++ b/libgiggle-git/giggle-git-refs.c
@@ -103,10 +103,6 @@ git_refs_get_property (GObject    *object,
 		       GValue     *value,
 		       GParamSpec *pspec)
 {
-	GiggleGitRefsPriv *priv;
-
-	priv = GET_PRIV (object);
-	
 	switch (param_id) {
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
@@ -120,10 +116,6 @@ git_refs_set_property (GObject      *object,
 		       const GValue *value,
 		       GParamSpec   *pspec)
 {
-	GiggleGitRefsPriv *priv;
-
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	default:
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
@@ -134,10 +126,6 @@ git_refs_set_property (GObject      *object,
 static gboolean
 git_refs_get_command_line (GiggleJob *job, gchar **command_line)
 {
-	GiggleGitRefsPriv *priv;
-
-	priv = GET_PRIV (job);
-
 	*command_line = g_strdup_printf (GIT_COMMAND " show-ref --dereference");
 	return TRUE;
 }
diff --git a/libgiggle/giggle-remote-branch.c b/libgiggle/giggle-remote-branch.c
index 4148dd8..8dfe6da 100644
--- a/libgiggle/giggle-remote-branch.c
+++ b/libgiggle/giggle-remote-branch.c
@@ -81,9 +81,6 @@ giggle_remote_branch_class_init (GiggleRemoteBranchClass *class)
 static void
 giggle_remote_branch_init (GiggleRemoteBranch *remote_branch)
 {
-	GiggleRemoteBranchPriv *priv;
-
-	priv = GET_PRIV (remote_branch);
 }
 
 static void
diff --git a/libgiggle/giggle-remote.c b/libgiggle/giggle-remote.c
index 423420d..1fc8dc6 100644
--- a/libgiggle/giggle-remote.c
+++ b/libgiggle/giggle-remote.c
@@ -105,9 +105,6 @@ giggle_remote_class_init (GiggleRemoteClass *class)
 static void
 giggle_remote_init (GiggleRemote *remote)
 {
-	GiggleRemotePriv *priv;
-
-	priv = GET_PRIV (remote);
 }
 
 static void
@@ -184,10 +181,6 @@ remote_set_property (GObject      *object,
 		     const GValue *value,
 		     GParamSpec   *pspec)
 {
-	GiggleRemotePriv *priv;
-
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	case PROP_ICON_NAME:
 		giggle_remote_set_icon_name (GIGGLE_REMOTE (object),
diff --git a/src/giggle-avatar-cache.c b/src/giggle-avatar-cache.c
index b9e185e..f2b5b29 100644
--- a/src/giggle-avatar-cache.c
+++ b/src/giggle-avatar-cache.c
@@ -49,11 +49,7 @@ static void
 avatar_cache_loader_finish (GiggleAvatarCacheLoader *loader,
 			    GError                  *error)
 {
-	GiggleAvatarCachePriv *priv;
-
 	if (loader->cache) {
-		priv = GET_PRIV (loader->cache);
-
 		g_object_remove_weak_pointer
 			(G_OBJECT (loader->cache),
 			 (gpointer) &loader->cache);
diff --git a/src/giggle-file-list.c b/src/giggle-file-list.c
index e6860b5..92d1738 100644
--- a/src/giggle-file-list.c
+++ b/src/giggle-file-list.c
@@ -178,10 +178,6 @@ file_list_set_property (GObject      *object,
 			const GValue *value,
 			GParamSpec   *pspec)
 {
-	GiggleFileListPriv *priv;
-
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	case PROP_SHOW_ALL:
 		giggle_file_list_set_show_all (GIGGLE_FILE_LIST (object),
@@ -1054,10 +1050,8 @@ static void
 file_list_toggle_show_all (GtkAction      *action,
 			   GiggleFileList *list)
 {
-	GiggleFileListPriv *priv;
 	gboolean active;
 
-	priv = GET_PRIV (list);
 	active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
 	giggle_file_list_set_show_all (list, active);
 }
@@ -1077,12 +1071,10 @@ file_list_populate_dir (GiggleFileList *list,
 			const gchar    *rel_path,
 			GtkTreeIter    *parent_iter)
 {
-	GiggleFileListPriv *priv;
 	GDir               *dir;
 	const gchar        *name;
 	gchar              *full_path, *path;
 
-	priv = GET_PRIV (list);
 	full_path = g_build_filename (directory, rel_path, NULL);
 	dir = g_dir_open (full_path, 0, NULL);
 
@@ -1268,7 +1260,6 @@ file_list_cell_data_background_func (GtkCellLayout   *cell_layout,
 				     GtkTreeIter     *iter,
 				     gpointer         data)
 {
-	GiggleFileListPriv *priv;
 	GiggleFileList     *file_list;
 	GtkStyleContext    *context;
 	GdkRGBA             rgba;
@@ -1276,7 +1267,6 @@ file_list_cell_data_background_func (GtkCellLayout   *cell_layout,
 	gchar              *rel_path;
 
 	file_list = GIGGLE_FILE_LIST (data);
-	priv = GET_PRIV (file_list);
 
 	context = gtk_widget_get_style_context (GTK_WIDGET (file_list));
 	gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &rgba);
@@ -1552,7 +1542,6 @@ giggle_file_list_set_show_all (GiggleFileList *list,
 GList *
 giggle_file_list_get_selection (GiggleFileList *list)
 {
-	GiggleFileListPriv *priv;
 	GtkTreeSelection   *selection;
 	GtkTreeModel       *model;
 	GtkTreeIter         iter;
@@ -1561,7 +1550,6 @@ giggle_file_list_get_selection (GiggleFileList *list)
 
 	g_return_val_if_fail (GIGGLE_IS_FILE_LIST (list), NULL);
 
-	priv = GET_PRIV (list);
 	files = NULL;
 
 	selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (list));
diff --git a/src/giggle-input-dialog.c b/src/giggle-input-dialog.c
index 6bdd3f0..670d8ab 100644
--- a/src/giggle-input-dialog.c
+++ b/src/giggle-input-dialog.c
@@ -191,11 +191,8 @@ input_dialog_get_property (GObject    *object,
 			   GValue     *value,
 			   GParamSpec *pspec)
 {
-	GiggleInputDialogPriv *priv;
 	const gchar           *text;
 
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	case PROP_TEXT:
 		text = giggle_input_dialog_get_text (GIGGLE_INPUT_DIALOG (object));
diff --git a/src/giggle-remote-editor.c b/src/giggle-remote-editor.c
index 66efc00..37eefba 100644
--- a/src/giggle-remote-editor.c
+++ b/src/giggle-remote-editor.c
@@ -325,10 +325,6 @@ remote_editor_set_remote (GiggleRemoteEditor *editor,
 static void
 remote_editor_finalize (GObject *object)
 {
-	GiggleRemoteEditorPriv *priv;
-
-	priv = GET_PRIV (object);
-	
 	remote_editor_set_remote (GIGGLE_REMOTE_EDITOR (object), NULL);
 
 	G_OBJECT_CLASS (giggle_remote_editor_parent_class)->finalize (object);
@@ -360,11 +356,8 @@ remote_editor_set_property (GObject      *object,
 		    const GValue *value,
 		    GParamSpec   *pspec)
 {
-	GiggleRemoteEditorPriv *priv;
 	GiggleRemote           *remote;
 
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	case PROP_REMOTE:
 		remote = g_value_get_object (value);
diff --git a/src/giggle-rev-list-view.c b/src/giggle-rev-list-view.c
index 0afc111..6b39683 100644
--- a/src/giggle-rev-list-view.c
+++ b/src/giggle-rev-list-view.c
@@ -194,10 +194,6 @@ rev_list_view_set_property (GObject      *object,
 			    const GValue *value,
 			    GParamSpec   *pspec)
 {
-	GiggleRevListViewPriv *priv;
-
-	priv = GET_PRIV (object);
-
 	switch (param_id) {
 	case PROP_GRAPH_VISIBLE:
 		giggle_rev_list_view_set_graph_visible (GIGGLE_REV_LIST_VIEW (object),
@@ -1442,12 +1438,9 @@ rev_list_view_cell_data_log_func (GtkCellLayout   *layout,
 				  GtkTreeIter     *iter,
 				  gpointer         data)
 {
-	GiggleRevListViewPriv *priv;
 	GiggleRevision         *revision;
 	gchar                  *markup;
 
-	priv = GET_PRIV (data);
-
 	gtk_tree_model_get (model, iter,
 			    COL_OBJECT, &revision,
 			    -1);
@@ -1552,14 +1545,11 @@ rev_list_view_cell_data_date_func (GtkCellLayout   *layout,
 				   GtkTreeIter     *iter,
 				   gpointer         data)
 {
-	GiggleRevListViewPriv *priv;
 	GiggleRevision         *revision;
 	gchar                  *format;
 	gchar                   buf[256];
 	const struct tm        *tm;
 
-	priv = GET_PRIV (data);
-
 	gtk_tree_model_get (model, iter,
 			    COL_OBJECT, &revision,
 			    -1);



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