]> granicus.if.org Git - graphviz/commitdiff
eliminate dependency on -lcdt from gd plugin
authorellson <devnull@localhost>
Wed, 24 May 2006 16:52:37 +0000 (16:52 +0000)
committerellson <devnull@localhost>
Wed, 24 May 2006 16:52:37 +0000 (16:52 +0000)
plugin/gd/gvrender_gd.c

index dcb56536ac2457a5833ab587160325679a400020..6f6c9a2e1dcf0b794f0a71f0f7ffc10f4cf765fe 100644 (file)
@@ -18,6 +18,7 @@
 #include "config.h"
 #endif
 
+#include <stdlib.h>
 #include <stddef.h>
 #include <string.h>
 #include <fcntl.h>
@@ -26,9 +27,6 @@
 
 #include "color.h"
 #include "types.h"
-#include "globals.h"
-
-#include "graph.h"
 
 #include "gvplugin_render.h"
 
@@ -45,8 +43,6 @@ extern char *safefile(char *shapefilename);
 /* fontsize at which text is rendered by a simple line */
 #define FONTSIZE_TOO_SMALL 1.5
 
-static Dict_t *ImageDict;
-
 /* from Glassner's Graphics Gems */
 #define W_DEGREE 5
 
@@ -275,10 +271,6 @@ static void gdgen_end_graph(GVJ_t * job)
 #endif
            break;
        }
-       if (ImageDict) {
-           dtclose(ImageDict);
-           ImageDict = 0;
-       }
        gdImageDestroy(im);
 #ifdef MYTRACE
        fprintf(stderr, "gdgen_end_graph (to file)\n");