From: buliabyak Date: Fri, 18 Aug 2006 02:18:03 +0000 (+0000) Subject: delete unused function X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=25e1114c71277fb7c3bd52305ed35f91c72ff448;p=inkscape.git delete unused function --- diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp index 5531abfef..41a45eec2 100644 --- a/src/desktop-events.cpp +++ b/src/desktop-events.cpp @@ -33,28 +33,11 @@ /* Root item handler */ - int sp_desktop_root_handler(SPCanvasItem *item, GdkEvent *event, SPDesktop *desktop) { return sp_event_context_root_handler(desktop->event_context, event); } -/* - * fixme: this conatins a hack, to deal with deleting a view, which is - * completely on another view, in which case active_desktop will not be updated - * - */ - -int sp_desktop_item_handler(SPCanvasItem *item, GdkEvent *event, gpointer data) -{ - gpointer ddata = gtk_object_get_data(GTK_OBJECT(item->canvas), "SPDesktop"); - g_return_val_if_fail(ddata != NULL, FALSE); - - SPDesktop *desktop = static_cast(ddata); - - return sp_event_context_item_handler(desktop->event_context, SP_ITEM(data), event); -} - static gint sp_dt_ruler_event(GtkWidget *widget, GdkEvent *event, SPDesktopWidget *dtw, bool horiz) { diff --git a/src/desktop-events.h b/src/desktop-events.h index 3964b5d07..8ddff0949 100644 --- a/src/desktop-events.h +++ b/src/desktop-events.h @@ -23,7 +23,6 @@ class SPCanvasItem; /* Item handlers */ int sp_desktop_root_handler (SPCanvasItem *item, GdkEvent *event, SPDesktop *desktop); -int sp_desktop_item_handler (SPCanvasItem *item, GdkEvent *event, gpointer data); /* Default handlers */