[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (f3afdbb4f57233b593d2723f7c4581a233750aa5)



The branch, master has been updated
  discards  0974ee574ae018c1e83889ea934b3434e9d9c62a (commit)
       via  f3afdbb4f57233b593d2723f7c4581a233750aa5 (commit)
      from  0974ee574ae018c1e83889ea934b3434e9d9c62a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/hid/gtk/gui-pinout-preview.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)


=================
 Commit Messages
=================

commit f3afdbb4f57233b593d2723f7c4581a233750aa5
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: Remove unused code from pinout_set_data

:100644 100644 2a205fa... 46806da... M	src/hid/gtk/gui-pinout-preview.c

=========
 Changes
=========

commit f3afdbb4f57233b593d2723f7c4581a233750aa5
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    hid/gtk: Remove unused code from pinout_set_data

diff --git a/src/hid/gtk/gui-pinout-preview.c b/src/hid/gtk/gui-pinout-preview.c
index 2a205fa..46806da 100644
--- a/src/hid/gtk/gui-pinout-preview.c
+++ b/src/hid/gtk/gui-pinout-preview.c
@@ -75,8 +75,6 @@ pinout_zoom_fit (GhidPinoutPreview * pinout, gint zoom)
 static void
 pinout_set_data (GhidPinoutPreview * pinout, ElementType * element)
 {
-  gint tx, ty, x_min = 0, y_min = 0;
-
   if (element == NULL)
     {
       FreeElementMemory (&pinout->element);
@@ -94,24 +92,12 @@ pinout_set_data (GhidPinoutPreview * pinout, ElementType * element)
   CopyElementLowLevel (NULL, &pinout->element, element, FALSE, 0, 0);
   PIN_LOOP (&pinout->element);
   {
-    tx = abs (pinout->element.Pin[0].X - pin->X);
-    ty = abs (pinout->element.Pin[0].Y - pin->Y);
-    if (x_min == 0 || (tx != 0 && tx < x_min))
-      x_min = tx;
-    if (y_min == 0 || (ty != 0 && ty < y_min))
-      y_min = ty;
     SET_FLAG (DISPLAYNAMEFLAG, pin);
   }
   END_LOOP;
 
   PAD_LOOP (&pinout->element);
   {
-    tx = abs (pinout->element.Pad[0].Point1.X - pad->Point1.X);
-    ty = abs (pinout->element.Pad[0].Point1.Y - pad->Point1.Y);
-    if (x_min == 0 || (tx != 0 && tx < x_min))
-      x_min = tx;
-    if (y_min == 0 || (ty != 0 && ty < y_min))
-      y_min = ty;
     SET_FLAG (DISPLAYNAMEFLAG, pad);
   }
   END_LOOP;




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs