summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-04-29 17:41:36 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-04-29 17:42:52 -0400
commit875efc324f8e91f2d157c7532fe5570c1de421c7 (patch)
treec7516c9c824afbce1d4b38213924674d6d5ebd5b
parentcfa51e6702ade6a8ca9045791773e6e10560262f (diff)
downloadnautilus-875efc324f8e91f2d157c7532fe5570c1de421c7.tar.gz
pathbar: remove unused code
The path-set signal has no listeners connected anymore, so it can be safely removed.
-rw-r--r--src/nautilus-pathbar.c34
-rw-r--r--src/nautilus-pathbar.h4
2 files changed, 0 insertions, 38 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index c9a15b786..d47184f9f 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -34,14 +34,10 @@
#include <libnautilus-private/nautilus-trash-monitor.h>
#include <libnautilus-private/nautilus-icon-dnd.h>
-#include "nautilus-window.h"
-#include "nautilus-window-private.h"
-#include "nautilus-window-slot.h"
#include "nautilus-window-slot-dnd.h"
enum {
PATH_CLICKED,
- PATH_SET,
PATH_EVENT,
LAST_SIGNAL
};
@@ -868,15 +864,6 @@ nautilus_path_bar_class_init (NautilusPathBarClass *path_bar_class)
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 1,
G_TYPE_FILE);
- path_bar_signals [PATH_SET] =
- g_signal_new ("path-set",
- G_OBJECT_CLASS_TYPE (path_bar_class),
- G_SIGNAL_RUN_FIRST,
- G_STRUCT_OFFSET (NautilusPathBarClass, path_set),
- NULL, NULL,
- g_cclosure_marshal_VOID__OBJECT,
- G_TYPE_NONE, 1,
- G_TYPE_FILE);
path_bar_signals [PATH_EVENT] =
g_signal_new ("path-event",
G_OBJECT_CLASS_TYPE (path_bar_class),
@@ -1764,7 +1751,6 @@ nautilus_path_bar_update_path (NautilusPathBar *path_bar,
}
gtk_widget_pop_composite_child ();
- g_signal_emit (path_bar, path_bar_signals [PATH_SET], 0, file_path);
}
void
@@ -1790,23 +1776,3 @@ nautilus_path_bar_set_path (NautilusPathBar *path_bar,
path_bar->priv->current_path = g_object_ref (file_path);
path_bar->priv->current_button_data = button_data;
}
-
-GFile *
-nautilus_path_bar_get_path_for_button (NautilusPathBar *path_bar,
- GtkWidget *button)
-{
- GList *list;
-
- g_return_val_if_fail (NAUTILUS_IS_PATH_BAR (path_bar), NULL);
- g_return_val_if_fail (GTK_IS_BUTTON (button), NULL);
-
- for (list = path_bar->priv->button_list; list; list = list->next) {
- ButtonData *button_data;
- button_data = BUTTON_DATA (list->data);
- if (button_data->button == button) {
- return g_object_ref (button_data->path);
- }
- }
-
- return NULL;
-}
diff --git a/src/nautilus-pathbar.h b/src/nautilus-pathbar.h
index 1f182a2ad..2a5d6b55e 100644
--- a/src/nautilus-pathbar.h
+++ b/src/nautilus-pathbar.h
@@ -48,8 +48,6 @@ struct _NautilusPathBarClass
void (* path_clicked) (NautilusPathBar *path_bar,
GFile *location);
- void (* path_set) (NautilusPathBar *path_bar,
- GFile *location);
void (* path_event) (NautilusPathBar *path_bar,
GdkEventButton *event,
GFile *location);
@@ -58,8 +56,6 @@ struct _NautilusPathBarClass
GType nautilus_path_bar_get_type (void) G_GNUC_CONST;
void nautilus_path_bar_set_path (NautilusPathBar *path_bar, GFile *file);
-GFile * nautilus_path_bar_get_path_for_button (NautilusPathBar *path_bar,
- GtkWidget *button);
void nautilus_path_bar_clear_buttons (NautilusPathBar *path_bar);
#endif /* NAUTILUS_PATHBAR_H */