[GRASS-SVN] r33127 - grass/trunk/lib/cairodriver
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 27 16:08:49 EDT 2008
Author: glynn
Date: 2008-08-27 16:08:49 -0400 (Wed, 27 Aug 2008)
New Revision: 33127
Modified:
grass/trunk/lib/cairodriver/Color.c
grass/trunk/lib/cairodriver/Poly.c
grass/trunk/lib/cairodriver/Text.c
Log:
Remove unused function
Add "static" where appropriate
Modified: grass/trunk/lib/cairodriver/Color.c
===================================================================
--- grass/trunk/lib/cairodriver/Color.c 2008-08-27 20:07:18 UTC (rev 33126)
+++ grass/trunk/lib/cairodriver/Color.c 2008-08-27 20:08:49 UTC (rev 33127)
@@ -14,10 +14,6 @@
#include "cairodriver.h"
-/* "cached" color (to avoid more color change calls than necessary) */
-/* TODO: find a proper solution for initialization */
-int previous_color = 0x7FFFFFFF;
-
/*!
\brief Set source color (opaque)
@@ -28,6 +24,8 @@
*/
void Cairo_color(int color)
{
+ static int previous_color = 0x7FFFFFFF;
+
G_debug(3, "Cairo_color: %d", color);
if (color != previous_color) {
Modified: grass/trunk/lib/cairodriver/Poly.c
===================================================================
--- grass/trunk/lib/cairodriver/Poly.c 2008-08-27 20:07:18 UTC (rev 33126)
+++ grass/trunk/lib/cairodriver/Poly.c 2008-08-27 20:08:49 UTC (rev 33127)
@@ -14,7 +14,7 @@
#include "cairodriver.h"
-void do_polygon(const double *xarray, const double *yarray, int count)
+static void do_polygon(const double *xarray, const double *yarray, int count)
{
int i;
Modified: grass/trunk/lib/cairodriver/Text.c
===================================================================
--- grass/trunk/lib/cairodriver/Text.c 2008-08-27 20:07:18 UTC (rev 33126)
+++ grass/trunk/lib/cairodriver/Text.c 2008-08-27 20:08:49 UTC (rev 33127)
@@ -251,21 +251,6 @@
return;
}
-/*!
- \brief Set font encoding
-
- \param enc encoding name
-*/
-void Cairo_set_encoding(const char *enc)
-{
- if (encoding)
- G_free(encoding);
-
- encoding = G_store(enc);
-
- return;
-}
-
static void font_list_toy(char ***list, int *count, int verbose)
{
char **fonts = *list;
More information about the grass-commit
mailing list