[nautilus] pathbar: remove unused code



commit 369eaac5796263e49dd0502aedc6d9137d160132
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Feb 18 11:55:30 2011 -0500

    pathbar: remove unused code

 src/nautilus-pathbar.c |   48 ------------------------------------------------
 src/nautilus-pathbar.h |    3 ---
 2 files changed, 0 insertions(+), 51 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index b06e49b..c1a5cfb 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -1867,51 +1867,3 @@ nautilus_path_bar_get_path_for_button (NautilusPathBar *path_bar,
 
 	return NULL;
 }
-
-/**
- * _nautilus_path_bar_up:
- * @path_bar: a #NautilusPathBar
- * 
- * If the selected button in the pathbar is not the furthest button "up" (in the
- * root direction), act as if the user clicked on the next button up.
- **/
-void
-nautilus_path_bar_up (NautilusPathBar *path_bar)
-{
-        GList *l;
-
-        for (l = path_bar->button_list; l; l = l->next) {
-                GtkWidget *button = BUTTON_DATA (l->data)->button;
-                if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))) {
-			if (l->next) {
-			        GtkWidget *next_button = BUTTON_DATA (l->next->data)->button;
-	      			button_clicked_cb (next_button, l->next->data);
-			}
-	  		break;
-		}
-        }
-}
-
-/**
- * _nautilus_path_bar_down:
- * @path_bar: a #NautilusPathBar
- * 
- * If the selected button in the pathbar is not the furthest button "down" (in the
- * leaf direction), act as if the user clicked on the next button down.
- **/
-void
-nautilus_path_bar_down (NautilusPathBar *path_bar)
-{
-        GList *l;
-
-        for (l = path_bar->button_list; l; l = l->next) {
-                GtkWidget *button = BUTTON_DATA (l->data)->button;
-                if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))) {
-	  		if (l->prev) {
-		      		GtkWidget *prev_button = BUTTON_DATA (l->prev->data)->button;
-	      			button_clicked_cb (prev_button, l->prev->data);
-	    		}
-	  		break;
-		}
-        }
-}
diff --git a/src/nautilus-pathbar.h b/src/nautilus-pathbar.h
index 8feb585..a4bb928 100644
--- a/src/nautilus-pathbar.h
+++ b/src/nautilus-pathbar.h
@@ -82,7 +82,4 @@ GFile *  nautilus_path_bar_get_path_for_button (NautilusPathBar *path_bar,
 						GtkWidget       *button);
 void     nautilus_path_bar_clear_buttons (NautilusPathBar *path_bar);
 
-void     nautilus_path_bar_up              (NautilusPathBar *path_bar);
-void     nautilus_path_bar_down            (NautilusPathBar *path_bar);
-
 #endif /* NAUTILUS_PATHBAR_H */



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