diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-04-29 17:41:36 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-04-29 17:42:52 -0400 |
commit | 875efc324f8e91f2d157c7532fe5570c1de421c7 (patch) | |
tree | c7516c9c824afbce1d4b38213924674d6d5ebd5b /src/nautilus-pathbar.c | |
parent | cfa51e6702ade6a8ca9045791773e6e10560262f (diff) | |
download | nautilus-875efc324f8e91f2d157c7532fe5570c1de421c7.tar.gz |
pathbar: remove unused code
The path-set signal has no listeners connected anymore, so it can be
safely removed.
Diffstat (limited to 'src/nautilus-pathbar.c')
-rw-r--r-- | src/nautilus-pathbar.c | 34 |
1 files changed, 0 insertions, 34 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; -} |