r15695 - gnucash/trunk/src/gnome-utils - Remove unused calls to goffice svg code.

Andreas Köhler andi5 at cvs.gnucash.org
Thu Mar 8 18:31:34 EST 2007


Author: andi5
Date: 2007-03-08 18:31:33 -0500 (Thu, 08 Mar 2007)
New Revision: 15695
Trac: http://svn.gnucash.org/trac/changeset/15695

Modified:
   gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c
Log:
Remove unused calls to goffice svg code.

The included header file gog-renderer-svg.h is installed only
conditionally by recent goffice versions, so drop the 0-#if'ed out code
completely.


Modified: gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c	2007-03-08 23:11:47 UTC (rev 15694)
+++ gnucash/trunk/src/gnome-utils/gnc-html-graph-gog.c	2007-03-08 23:31:33 UTC (rev 15695)
@@ -43,7 +43,6 @@
 #include <goffice/graph/gog-series.h>
 #include <goffice/utils/go-color.h>
 #include <goffice/graph/gog-data-set.h>
-#include <goffice/graph/gog-renderer-svg.h>
 #include <goffice/data/go-data-simple.h>
 #include <goffice/app/go-plugin.h>
 #include <goffice/app/go-plugin-loader-module.h>
@@ -171,18 +170,6 @@
   // gnumeric uses.  We probably _should_ do something like that, though.
   gog_object_update (GOG_OBJECT (graph));
 
-#if 0
-  // example SVG use.  Also, nice for debugging.
-  {
-    GsfOutput *mem;
-    gboolean output;
-
-    mem = gsf_output_memory_new();
-    output = gog_graph_export_to_svg( graph, mem, eb->width, eb->height, 1. );
-    printf( "svg: [%s]\n", (guchar*)gsf_output_memory_get_bytes( GSF_OUTPUT_MEMORY(mem) ) );
-  }
-#endif // 0
-
   pixbuf_renderer = GOG_RENDERER_PIXBUF (g_object_new (GOG_RENDERER_PIXBUF_TYPE,
 						       "model", graph,
 						       NULL));



More information about the gnucash-changes mailing list