summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-03-08 22:53:58 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2015-03-08 22:53:58 +0000
commitd36fc3e5e33eec943dfed7b76bf43dfdb1f44412 (patch)
treeb8cb94de37a5a103c600812c749acafcd886ae0d /navit
parent7678fbde54f2d0302f5283203bc541dd3108f5ba (diff)
downloadnavit-svn-d36fc3e5e33eec943dfed7b76bf43dfdb1f44412.tar.gz
Refactor:core:Remove unused graphics method graphics_gc_set_stipple.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@6023 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit')
-rw-r--r--navit/graphics.c12
-rw-r--r--navit/graphics.h2
-rw-r--r--navit/graphics/cocoa/graphics_cocoa.m6
-rw-r--r--navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c10
-rw-r--r--navit/graphics/win32/graphics_win32.c1
-rw-r--r--navit/plugin/pedestrian/pedestrian.c1
6 files changed, 0 insertions, 32 deletions
diff --git a/navit/graphics.c b/navit/graphics.c
index cfd6a68f..e19324e5 100644
--- a/navit/graphics.c
+++ b/navit/graphics.c
@@ -568,18 +568,6 @@ void graphics_gc_set_background(struct graphics_gc *gc, struct color *c)
* @returns <>
* @author Martin Schaller (04/2008)
*/
-void graphics_gc_set_stipple(struct graphics_gc *gc, struct graphics_image *img)
-{
- gc->meth.gc_set_stipple(gc->priv, img ? img->priv : NULL);
-}
-
-
-/**
- * FIXME
- * @param <>
- * @returns <>
- * @author Martin Schaller (04/2008)
-*/
void graphics_gc_set_linewidth(struct graphics_gc *gc, int width)
{
gc->meth.gc_set_linewidth(gc->priv, width);
diff --git a/navit/graphics.h b/navit/graphics.h
index d41c31f7..f1e782f0 100644
--- a/navit/graphics.h
+++ b/navit/graphics.h
@@ -99,7 +99,6 @@ struct graphics_gc_methods {
void (*gc_set_dashes)(struct graphics_gc_priv *gc, int width, int offset, unsigned char dash_list[], int n);
void (*gc_set_foreground)(struct graphics_gc_priv *gc, struct color *c);
void (*gc_set_background)(struct graphics_gc_priv *gc, struct color *c);
- void (*gc_set_stipple)(struct graphics_gc_priv *gc, struct graphics_image_priv *img);
};
struct graphics_gc {
@@ -166,7 +165,6 @@ struct graphics_gc *graphics_gc_new(struct graphics *gra);
void graphics_gc_destroy(struct graphics_gc *gc);
void graphics_gc_set_foreground(struct graphics_gc *gc, struct color *c);
void graphics_gc_set_background(struct graphics_gc *gc, struct color *c);
-void graphics_gc_set_stipple(struct graphics_gc *gc, struct graphics_image *img);
void graphics_gc_set_linewidth(struct graphics_gc *gc, int width);
void graphics_gc_set_dashes(struct graphics_gc *gc, int width, int offset, unsigned char dash_list[], int n);
struct graphics_image *graphics_image_new_scaled(struct graphics *gra, char *path, int w, int h);
diff --git a/navit/graphics/cocoa/graphics_cocoa.m b/navit/graphics/cocoa/graphics_cocoa.m
index 5bccd346..e9aec60c 100644
--- a/navit/graphics/cocoa/graphics_cocoa.m
+++ b/navit/graphics/cocoa/graphics_cocoa.m
@@ -532,18 +532,12 @@ gc_set_background(struct graphics_gc_priv *gc, struct color *c)
{
}
-static void
-gc_set_stipple(struct graphics_gc_priv *gc, struct graphics_image_priv *img)
-{
-}
-
static struct graphics_gc_methods gc_methods = {
gc_destroy,
gc_set_linewidth,
gc_set_dashes,
gc_set_foreground,
gc_set_background,
- gc_set_stipple,
};
static struct graphics_gc_priv *gc_new(struct graphics_priv *gr, struct graphics_gc_methods *meth)
diff --git a/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c b/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c
index 73d935f4..b1ae0404 100644
--- a/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c
+++ b/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c
@@ -175,22 +175,12 @@ gc_set_background(struct graphics_gc_priv *gc, struct color *c)
gc_set_color(gc, c, 0);
}
-static void
-gc_set_stipple(struct graphics_gc_priv *gc, struct graphics_image_priv *img)
-{
- char data[2]={0x2,0x1};
- gdk_gc_set_fill(gc->gc, GDK_STIPPLED);
- gc->pixmap=gdk_bitmap_create_from_data(gc->gr->widget->window, data, 2, 2);
- gdk_gc_set_stipple(gc->gc, gc->pixmap);
-}
-
static struct graphics_gc_methods gc_methods = {
gc_destroy,
gc_set_linewidth,
gc_set_dashes,
gc_set_foreground,
gc_set_background,
- gc_set_stipple,
};
static struct graphics_gc_priv *gc_new(struct graphics_priv *gr, struct graphics_gc_methods *meth)
diff --git a/navit/graphics/win32/graphics_win32.c b/navit/graphics/win32/graphics_win32.c
index f49e7ce9..67198350 100644
--- a/navit/graphics/win32/graphics_win32.c
+++ b/navit/graphics/win32/graphics_win32.c
@@ -822,7 +822,6 @@ static struct graphics_gc_methods gc_methods =
gc_set_dashes,
gc_set_foreground,
gc_set_background,
- NULL, //gc_set_stipple
};
static struct graphics_gc_priv *gc_new(struct graphics_priv *gr, struct graphics_gc_methods *meth)
diff --git a/navit/plugin/pedestrian/pedestrian.c b/navit/plugin/pedestrian/pedestrian.c
index 02ff0d4e..44454369 100644
--- a/navit/plugin/pedestrian/pedestrian.c
+++ b/navit/plugin/pedestrian/pedestrian.c
@@ -1021,7 +1021,6 @@ pedestrian_graphics_postdraw(struct graphics *gra)
p.x=0;
p.y=0;
graphics_gc_set_foreground(gc, &c);
- graphics_gc_set_stipple(gc, NULL);
graphics_draw_rectangle(gra, gc, &p, 1000, 200);
graphics_gc_destroy(gc);
#endif