From 89f799d73d59da228c8d57593b02a87594909cdd Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Sun, 13 Jan 2013 00:49:26 -0800 Subject: Minor warning and dead code cleanup. (bzr r12018) --- src/connector-context.cpp | 2 +- src/text-chemistry.cpp | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) (limited to 'src') diff --git a/src/connector-context.cpp b/src/connector-context.cpp index b9d6e46b3..24a7203ac 100644 --- a/src/connector-context.cpp +++ b/src/connector-context.cpp @@ -1124,7 +1124,7 @@ cc_generic_knot_handler(SPCanvasItem *, GdkEvent *event, SPKnot *knot) gboolean consumed = FALSE; - gchar* knot_tip = "Click to join at this point"; + gchar const *knot_tip = "Click to join at this point"; switch (event->type) { case GDK_ENTER_NOTIFY: sp_knot_set_flag(knot, SP_KNOT_MOUSEOVER, TRUE); diff --git a/src/text-chemistry.cpp b/src/text-chemistry.cpp index 2046784f1..8a3fede0f 100644 --- a/src/text-chemistry.cpp +++ b/src/text-chemistry.cpp @@ -40,18 +40,6 @@ using Inkscape::DocumentUndo; -static SPItem * -text_in_selection(Inkscape::Selection *selection) -{ - for (GSList *items = (GSList *) selection->itemList(); - items != NULL; - items = items->next) { - if (SP_IS_TEXT(items->data)) - return ((SPItem *) items->data); - } - return NULL; -} - static SPItem * flowtext_in_selection(Inkscape::Selection *selection) { -- cgit v1.2.3