From c0fa09cddd1171864473217a3853b91e09799f8f Mon Sep 17 00:00:00 2001
From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org>
Date: Thu, 30 Apr 1998 00:04:19 +0200
Subject: [PATCH] no polygons

Rev: src/modules/Image/image.c:1.105
Rev: src/modules/Image/polygon.c:1.2(DEAD)
Rev: src/modules/Image/polygon.h:1.2(DEAD)
---
 .gitattributes              |   1 -
 src/modules/Image/image.c   |   9 ++--
 src/modules/Image/polygon.c | 104 ------------------------------------
 src/modules/Image/polygon.h |  21 --------
 4 files changed, 3 insertions(+), 132 deletions(-)
 delete mode 100644 src/modules/Image/polygon.c
 delete mode 100644 src/modules/Image/polygon.h

diff --git a/.gitattributes b/.gitattributes
index 99da4b35f4..65c6238080 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -179,7 +179,6 @@ testfont binary
 /src/modules/Image/pattern.c foreign_ident
 /src/modules/Image/pnm.c foreign_ident
 /src/modules/Image/polyfill.c foreign_ident
-/src/modules/Image/polygon.c foreign_ident
 /src/modules/Image/togif.c foreign_ident
 /src/modules/Image/x.c foreign_ident
 /src/modules/MIME/Makefile.in foreign_ident
diff --git a/src/modules/Image/image.c b/src/modules/Image/image.c
index 77f2a47e7a..a430546bf0 100644
--- a/src/modules/Image/image.c
+++ b/src/modules/Image/image.c
@@ -1,9 +1,9 @@
-/* $Id: image.c,v 1.104 1998/04/20 18:53:30 grubba Exp $ */
+/* $Id: image.c,v 1.105 1998/04/29 22:04:19 mirar Exp $ */
 
 /*
 **! module Image
 **! note
-**!	$Id: image.c,v 1.104 1998/04/20 18:53:30 grubba Exp $
+**!	$Id: image.c,v 1.105 1998/04/29 22:04:19 mirar Exp $
 **! class image
 **!
 **!	The main object of the <ref>Image</ref> module, this object
@@ -97,7 +97,7 @@
 
 #include "stralloc.h"
 #include "global.h"
-RCSID("$Id: image.c,v 1.104 1998/04/20 18:53:30 grubba Exp $");
+RCSID("$Id: image.c,v 1.105 1998/04/29 22:04:19 mirar Exp $");
 #include "pike_macros.h"
 #include "object.h"
 #include "constants.h"
@@ -111,7 +111,6 @@ RCSID("$Id: image.c,v 1.104 1998/04/20 18:53:30 grubba Exp $");
 
 #include "image.h"
 #include "colortable.h"
-#include "polygon.h"
 #include "builtin_functions.h"
 
 struct program *image_program;
@@ -3775,7 +3774,6 @@ void pike_module_init(void)
 
    init_font_programs();
    init_colortable_programs();
-   init_polygon_programs();
 
    add_function("`[]",image_index_magic,
 		"function(string:object)",0);
@@ -3795,7 +3793,6 @@ void pike_module_exit(void)
   }
   exit_font();
   exit_colortable();
-  exit_polygon();
 
   exit_image_gif();
   exit_image_pnm();
diff --git a/src/modules/Image/polygon.c b/src/modules/Image/polygon.c
deleted file mode 100644
index 0b5d423019..0000000000
--- a/src/modules/Image/polygon.c
+++ /dev/null
@@ -1,104 +0,0 @@
-#include "global.h"
-#include <config.h>
-
-/* $Id: polygon.c,v 1.1 1998/04/20 01:42:24 mirar Exp $ */
-
-/*
-**! module Image
-**! note
-**!	$Id: polygon.c,v 1.1 1998/04/20 01:42:24 mirar Exp $
-**! class polygon
-**!
-**!	This object keep polygon information,
-**!	for quick polygon operations.
-**!
-**! see also: Image, Image.image, Image.image->polyfill
-*/
-
-#undef COLORTABLE_DEBUG
-#undef COLORTABLE_REDUCE_DEBUG
-
-RCSID("$Id: polygon.c,v 1.1 1998/04/20 01:42:24 mirar Exp $");
-
-#include <math.h> 
-
-#include "config.h"
-
-#include "stralloc.h"
-#include "pike_macros.h"
-#include "object.h"
-#include "constants.h"
-#include "interpret.h"
-#include "svalue.h"
-#include "array.h"
-#include "threads.h"
-#include "builtin_functions.h"
-
-#include "image.h"
-#include "polygon.h"
-#include "dmalloc.h"
-
-struct program *image_polygon_program;
-extern struct program *image_program;
-
-
-#ifdef THIS
-#undef THIS /* Needed for NT */
-#endif
-#define THIS ((struct polygon *)(fp->current_storage))
-#define THISOBJ (fp->current_object)
-
-/***************** init & exit *********************************/
-
-static void free_polygon_struct(struct polygon *nct)
-{
-}
-
-static void polygon_init_stuff(struct polygon *nct)
-{
-}
-
-static void init_polygon_struct(struct object *obj)
-{
-   polygon_init_stuff(THIS);
-}
-
-static void exit_polygon_struct(struct object *obj)
-{
-   free_polygon_struct(THIS);
-}
-
-/***************** internal stuff ******************************/
-
-/***************** called stuff ********************************/
-
-static void image_polygon_create(INT32 args)
-{
-}
-
-/***************** global init etc *****************************/
-
-void init_polygon_programs(void)
-{
-   start_new_program();
-   add_storage(sizeof(struct polygon));
-
-   set_init_callback(init_polygon_struct);
-   set_exit_callback(exit_polygon_struct);
-
-   add_function("create",image_polygon_create,
-		"function(object|array(int|float) ...:void)",0);
-
-   image_polygon_program=end_program();
-   add_program_constant("polygon",image_polygon_program, 0);
-}
-
-void exit_polygon(void) 
-{
-  if(image_polygon_program)
-  {
-    free_program(image_polygon_program);
-    image_polygon_program=0;
-  }
-}
-
diff --git a/src/modules/Image/polygon.h b/src/modules/Image/polygon.h
deleted file mode 100644
index dcee2f3af6..0000000000
--- a/src/modules/Image/polygon.h
+++ /dev/null
@@ -1,21 +0,0 @@
-
-#ifdef PCOORD
-#undef PCOORD
-#endif
-#ifdef PFLOAT
-#undef PFLOAT
-#endif
-
-#define PCOORD struct polygon_coord
-#define PFLOAT double
-
-struct polygon_coord { PFLOAT x,y; };
-
-struct polygon
-{
-   PCOORD min,max;
-};
-
-
-void init_polygon_programs(void);
-void exit_polygon(void);
-- 
GitLab