From 9d25e1b1738f2a7c209d6af84359588bee2dbac6 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Fri, 29 Jan 2016 10:38:12 -0500
Subject: [PATCH] remove GUI function that is no longer needed

---
 pd/nw/pdgui.js      | 16 ----------------
 pd/src/g_all_guis.c |  1 -
 pd/src/g_text.c     |  2 --
 3 files changed, 19 deletions(-)

diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 1f78330f8..71a292e6f 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -1747,22 +1747,6 @@ function gui_gobj_deselect(cid, tag) {
     }
 }
 
-function gui_text_select_color(cid, tag) {
-    // nb: this is handled in css now-- we should do a final check to make
-    // sure this isn't called, then get rid of it.
-    return;
-    var rect = get_item(cid, tag + "border");
-    if (rect !== null) {
-        configure_item(rect, {
-            stroke: "blue",
-            "stroke-width": 1,
-            "stroke-dasharray": "none"
-        });
-    } else {
-        post("select_color: something wrong with tag: " + tag + "border");
-    }
-}
-
 // This adds a 0.5 offset to align to pixel grid, so it should
 // only be used to move gobjs to a new position.  (Should probably
 // be renamed to gobj_move to make this more obvious.)
diff --git a/pd/src/g_all_guis.c b/pd/src/g_all_guis.c
index 271d57905..800eb2636 100644
--- a/pd/src/g_all_guis.c
+++ b/pd/src/g_all_guis.c
@@ -526,7 +526,6 @@ void iemgui_select(t_gobj *z, t_glist *glist, int selected)
         x->x_selected = canvas;
     else
         x->x_selected = NULL;
-    gui_vmess("gui_text_select_color", "xx", canvas, x);
     x->x_draw((void *)z, glist, IEM_GUI_DRAW_MODE_SELECT);
     if (selected < 2)
     {
diff --git a/pd/src/g_text.c b/pd/src/g_text.c
index 0348def28..bed934948 100644
--- a/pd/src/g_text.c
+++ b/pd/src/g_text.c
@@ -1620,8 +1620,6 @@ static void text_select(t_gobj *z, t_glist *glist, int state)
     {
         if (glist_istoplevel(glist))
         {
-            gui_vmess("gui_text_select_color", "xs",
-                glist_getcanvas(glist), rtext_gettag(y));
             if (z->g_pd == gatom_class)
             {
                 //sys_vgui(".x%lx.c itemconfigure %lx.l -fill %s\n",
-- 
GitLab