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

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



The branch, master has been updated
       via  3c052533b71678cf92ed1222ceb79dca7f53c935 (commit)
      from  a1d652788c846c6ec5b7a143a538f2544a2ce262 (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/draw.c |   28 ----------------------------
 1 files changed, 0 insertions(+), 28 deletions(-)


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

commit 3c052533b71678cf92ed1222ceb79dca7f53c935
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    draw.c: Remove unused function thin_callback()

:100644 100644 6eb0d81... d351889... M	src/draw.c

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

commit 3c052533b71678cf92ed1222ceb79dca7f53c935
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Commit: Peter Clifton <pcjc2@xxxxxxxxx>

    draw.c: Remove unused function thin_callback()

diff --git a/src/draw.c b/src/draw.c
index 6eb0d81..d351889 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -1393,34 +1393,6 @@ DrawPolygon (LayerTypePtr Layer, PolygonTypePtr Polygon)
   AddPart (Polygon);
 }
 
-int
-thin_callback (PLINE * pl, LayerTypePtr lay, PolygonTypePtr poly)
-{
-  int i, *x, *y;
-  VNODE *v;
-
-  i = 0;
-  x = (int *) malloc (pl->Count * sizeof (int));
-  y = (int *) malloc (pl->Count * sizeof (int));
-  for (v = &pl->head; i < pl->Count; v = v->next)
-    {
-      x[i] = v->point[0];
-      y[i++] = v->point[1];
-    }
-  gui->set_line_cap (Output.fgGC, Round_Cap);
-  gui->set_line_width (Output.fgGC, 0);
-  for (i = 0; i < pl->Count - 1; i++)
-    {
-      gui->draw_line (Output.fgGC, x[i], y[i], x[i + 1], y[i + 1]);
-      //  gui->fill_circle (Output.fgGC, x[i], y[i], 30);
-    }
-  gui->draw_line (Output.fgGC, x[pl->Count - 1], y[pl->Count - 1], x[0],
-		  y[0]);
-  free (x);
-  free (y);
-  return 0;
-}
-
 /* ---------------------------------------------------------------------------
  * draws an element
  */




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