Commit 875efc32 authored by Cosimo Cecchi's avatar Cosimo Cecchi

pathbar: remove unused code

The path-set signal has no listeners connected anymore, so it can be
safely removed.
parent cfa51e67
......@@ -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;
}
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment