From 35e0f0fce9c2f73d69924422ab05807249b1c65c Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Thu, 7 Jan 2016 21:45:04 -0500
Subject: [PATCH] comment out some sys_vgui calls which are _probably_ no
 longer necessary (plus extra comments saying as much)

---
 pd/src/g_editor.c | 9 ++++++---
 pd/src/g_graph.c  | 6 ++++--
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index b9e509d82..73b1ee775 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -134,12 +134,15 @@ void canvas_raise_all_cords (t_canvas *x) {
 }
 
 static void canvas_enteritem (t_canvas *x, int xpos, int ypos, const char *tag) {
-    sys_vgui("pdtk_canvas_enteritem .x%x.c %d %d %s -1\n",
-        x, xpos, ypos, tag);
+    // This will be replaced by GUI-side functionality once we combine
+    // object and xlet drawing in a single command from Pd.
+    //sys_vgui("pdtk_canvas_enteritem .x%x.c %d %d %s -1\n",
+    //    x, xpos, ypos, tag);
 }
 
 static void canvas_leaveitem (t_canvas *x) {
-    sys_vgui("pdtk_canvas_leaveitem .x%x.c\n", x);
+    // See comment above
+    //sys_vgui("pdtk_canvas_leaveitem .x%x.c\n", x);
 }
 
 static void tooltip_erase (t_canvas *x) {
diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c
index 6b0809511..80465f4e5 100644
--- a/pd/src/g_graph.c
+++ b/pd/src/g_graph.c
@@ -1550,8 +1550,10 @@ static void graph_select(t_gobj *z, t_glist *glist, int state)
                 }
             }
         }
-        sys_vgui("pdtk_select_all_gop_widgets .x%lx %s %d\n",
-            canvas, rtext_gettag(glist_findrtext(glist, &x->gl_obj)), state);
+        // Don't yet understand the purpose of this call, so not deleting
+        // it just yet...
+        //sys_vgui("pdtk_select_all_gop_widgets .x%lx %s %d\n",
+        //    canvas, rtext_gettag(glist_findrtext(glist, &x->gl_obj)), state);
     }
 }
 
-- 
GitLab