From 883ad266d9036929484e102d593597bc02c56df6 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Wed, 6 Jan 2016 00:32:32 -0500
Subject: [PATCH] remove unclick function

---
 externals/build/include/g_all_guis.h | 1 -
 pd/src/g_all_guis.c                  | 6 ++----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/externals/build/include/g_all_guis.h b/externals/build/include/g_all_guis.h
index 6dea04015..25e22f538 100644
--- a/externals/build/include/g_all_guis.h
+++ b/externals/build/include/g_all_guis.h
@@ -235,7 +235,6 @@ EXTERN t_scalehandle *scalehandle_new(t_object *x, t_glist *glist, int scale, t_
 EXTERN void scalehandle_free(t_scalehandle *h);
 EXTERN void properties_set_field_int(long props, const char *gui_field, int value);
 EXTERN void scalehandle_dragon_label(t_scalehandle *h, float f1, float f2);
-EXTERN void scalehandle_unclick_label(t_scalehandle *h);
 EXTERN void scalehandle_click_label(t_scalehandle *h);
 EXTERN void scalehandle_click_scale(t_scalehandle *h);
 EXTERN void scalehandle_unclick_scale(t_scalehandle *h);
diff --git a/pd/src/g_all_guis.c b/pd/src/g_all_guis.c
index 1e715a147..df0c07669 100644
--- a/pd/src/g_all_guis.c
+++ b/pd/src/g_all_guis.c
@@ -906,7 +906,6 @@ static void scalehandle_clickhook(t_scalehandle *h, t_floatarg f,
     h->h_offset_x=xxx;
     h->h_offset_y=yyy;
     h->h_clickfn(h,f);
-    
 }
 
 static void scalehandle_motionhook(t_scalehandle *h,
@@ -916,7 +915,6 @@ static void scalehandle_motionhook(t_scalehandle *h,
     // Now set the offset to the new mouse position
     h->h_offset_x = f1;
     h->h_offset_y = f2;
-
 }
 
 void iemgui__clickhook3(t_scalehandle *sh, int newstate) {
@@ -932,7 +930,7 @@ void iemgui__clickhook3(t_scalehandle *sh, int newstate) {
 // drawn when object is selected on its canvas (instead of GOP)
 static void scalehandle_check_and_redraw(t_iemgui *x)
 {
-    if(x->x_selected == x->x_glist)
+    if (x->x_selected == x->x_glist)
         scalehandle_draw_select2(x);
 }
 
@@ -941,7 +939,7 @@ static void scalehandle_check_and_redraw(t_iemgui *x)
 
 void iemgui_tag_selected(t_iemgui *x) {
     t_canvas *canvas=glist_getcanvas(x->x_glist);
-    if(x->x_selected)
+    if (x->x_selected)
     {
         //sys_vgui(".x%lx.c addtag selected withtag x%lx\n", canvas, x);
         gui_vmess("gui_gobj_select", "xx", canvas, x);
-- 
GitLab