Explorar o código

Remove unused function
Add "static" where appropriate


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33127 15284696-431f-4ddb-bdfa-cd5b030d7da7

Glynn Clements %!s(int64=16) %!d(string=hai) anos
pai
achega
7b4f8e2d44
Modificáronse 3 ficheiros con 3 adicións e 20 borrados
  1. 2 4
      lib/cairodriver/Color.c
  2. 1 1
      lib/cairodriver/Poly.c
  3. 0 15
      lib/cairodriver/Text.c

+ 2 - 4
lib/cairodriver/Color.c

@@ -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 @@ int previous_color = 0x7FFFFFFF;
 */
 void Cairo_color(int color)
 {
+    static int previous_color = 0x7FFFFFFF;
+
     G_debug(3, "Cairo_color: %d", color);
 
     if (color != previous_color) {

+ 1 - 1
lib/cairodriver/Poly.c

@@ -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;
 

+ 0 - 15
lib/cairodriver/Text.c

@@ -251,21 +251,6 @@ void Cairo_set_font(const char *name)
     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;