diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2015-03-03 16:43:25 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2015-03-03 16:43:25 +0000 |
commit | dbca8c02604ce2439662918daf7b072e59d99d7d (patch) | |
tree | 78551f14bd342c9591bde013f81d9c778398e297 /navit/graphics | |
parent | f3b603d4a535a8716255cabe5e6a90d19f80b76f (diff) | |
download | navit-dbca8c02604ce2439662918daf7b072e59d99d7d.tar.gz |
Refactor:core:Remove unused method graphics_draw_restore.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@6015 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics')
-rw-r--r-- | navit/graphics/android/graphics_android.c | 6 | ||||
-rw-r--r-- | navit/graphics/cocoa/graphics_cocoa.m | 1 | ||||
-rw-r--r-- | navit/graphics/gd/graphics_gd.c | 6 | ||||
-rw-r--r-- | navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c | 12 | ||||
-rw-r--r-- | navit/graphics/null/graphics_null.c | 6 | ||||
-rw-r--r-- | navit/graphics/opengl/graphics_opengl.c | 6 | ||||
-rw-r--r-- | navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp | 11 | ||||
-rw-r--r-- | navit/graphics/sdl/graphics_sdl.c | 7 | ||||
-rw-r--r-- | navit/graphics/win32/graphics_win32.c | 7 |
9 files changed, 0 insertions, 62 deletions
diff --git a/navit/graphics/android/graphics_android.c b/navit/graphics/android/graphics_android.c index 498779b61..f01fb2600 100644 --- a/navit/graphics/android/graphics_android.c +++ b/navit/graphics/android/graphics_android.c @@ -373,11 +373,6 @@ draw_image(struct graphics_priv *gra, struct graphics_gc_priv *fg, struct point } -static void -draw_restore(struct graphics_priv *gr, struct point *p, int w, int h) -{ -} - static void draw_drag(struct graphics_priv *gra, struct point *p) { (*jnienv)->CallVoidMethod(jnienv, gra->NavitGraphics, gra->NavitGraphics_draw_drag, p ? p->x : 0, p ? p->y : 0); @@ -458,7 +453,6 @@ static struct graphics_methods graphics_methods = { draw_text, draw_image, NULL, - draw_restore, draw_drag, font_new, gc_new, diff --git a/navit/graphics/cocoa/graphics_cocoa.m b/navit/graphics/cocoa/graphics_cocoa.m index d5fe10278..5bccd3463 100644 --- a/navit/graphics/cocoa/graphics_cocoa.m +++ b/navit/graphics/cocoa/graphics_cocoa.m @@ -639,7 +639,6 @@ static struct graphics_methods graphics_methods = { draw_text, draw_image, NULL, /* draw_image_warp, */ - NULL, /* draw_restore, */ draw_drag, font_new, gc_new, diff --git a/navit/graphics/gd/graphics_gd.c b/navit/graphics/gd/graphics_gd.c index 0d39b4701..06d63ac2f 100644 --- a/navit/graphics/gd/graphics_gd.c +++ b/navit/graphics/gd/graphics_gd.c @@ -467,11 +467,6 @@ draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point * } static void -draw_restore(struct graphics_priv *gr, struct point *p, int w, int h) -{ -} - -static void draw_drag(struct graphics_priv *gr, struct point *p) { if (p) @@ -806,7 +801,6 @@ static struct graphics_methods graphics_methods = { draw_text, draw_image, NULL, - draw_restore, draw_drag, NULL, gc_new, 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 18ca1436a..8d75415c0 100644 --- a/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c +++ b/navit/graphics/gtk_drawing_area/graphics_gtk_drawing_area.c @@ -601,17 +601,6 @@ overlay_draw(struct graphics_priv *parent, struct graphics_priv *overlay, GdkRec } static void -draw_restore(struct graphics_priv *gr, struct point *p, int w, int h) -{ - GtkWidget *widget=gr->widget; - gdk_draw_drawable(widget->window, - widget->style->fg_gc[GTK_WIDGET_STATE(widget)], - gr->drawable, - p->x, p->y, p->x, p->y, w, h); - -} - -static void draw_drag(struct graphics_priv *gr, struct point *p) { if (!gr->cleanup) { @@ -1155,7 +1144,6 @@ static struct graphics_methods graphics_methods = { #else NULL, #endif - draw_restore, draw_drag, NULL, /* font_new */ gc_new, diff --git a/navit/graphics/null/graphics_null.c b/navit/graphics/null/graphics_null.c index 7b0270369..22909f7b0 100644 --- a/navit/graphics/null/graphics_null.c +++ b/navit/graphics/null/graphics_null.c @@ -150,11 +150,6 @@ draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point * { } -static void -draw_restore(struct graphics_priv *gr, struct point *p, int w, int h) -{ -} - static void draw_drag(struct graphics_priv *gr, struct point *p) { } @@ -230,7 +225,6 @@ static struct graphics_methods graphics_methods = { draw_text, draw_image, NULL, - draw_restore, draw_drag, font_new, gc_new, diff --git a/navit/graphics/opengl/graphics_opengl.c b/navit/graphics/opengl/graphics_opengl.c index 8e666f515..5d65d1cd7 100644 --- a/navit/graphics/opengl/graphics_opengl.c +++ b/navit/graphics/opengl/graphics_opengl.c @@ -1084,11 +1084,6 @@ draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, } static void -draw_restore(struct graphics_priv *gr, struct point *p, int w, int h) -{ -} - -static void draw_drag(struct graphics_priv *gr, struct point *p) { @@ -1427,7 +1422,6 @@ static struct graphics_methods graphics_methods = { draw_text, draw_image, NULL, - draw_restore, draw_drag, NULL, gc_new, diff --git a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp index a82170162..21ff837d6 100644 --- a/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp +++ b/navit/graphics/qt_qpainter/graphics_qt_qpainter.cpp @@ -459,16 +459,6 @@ static void draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, st gr->painter->drawPixmap(p->x, p->y, *img->pixmap); } -//############################################################################################################## -//# Description: -//# Comment: -//# Authors: Martin Schaller (04/2008) -//############################################################################################################## -static void draw_restore(struct graphics_priv *gr, struct point *p, int w, int h) -{ -} - - static void draw_drag(struct graphics_priv *gr, struct point *p) { @@ -694,7 +684,6 @@ static struct graphics_methods graphics_methods = { draw_text, draw_image, NULL, - draw_restore, draw_drag, font_new, gc_new, diff --git a/navit/graphics/sdl/graphics_sdl.c b/navit/graphics/sdl/graphics_sdl.c index 64e9a3d12..95a6a7040 100644 --- a/navit/graphics/sdl/graphics_sdl.c +++ b/navit/graphics/sdl/graphics_sdl.c @@ -780,12 +780,6 @@ draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point * } static void -draw_restore(struct graphics_priv *gr, struct point *p, int w, int h) -{ - dbg(lvl_debug, "draw_restore\n"); -} - -static void background_gc(struct graphics_priv *gr, struct graphics_gc_priv *gc) { dbg(lvl_debug, "background_gc\n"); @@ -903,7 +897,6 @@ static struct graphics_methods graphics_methods = { draw_text, draw_image, NULL, /*draw_image_warp */ - draw_restore, draw_drag, NULL, /* font_new */ gc_new, diff --git a/navit/graphics/win32/graphics_win32.c b/navit/graphics/win32/graphics_win32.c index 038aa59ff..f49e7ce99 100644 --- a/navit/graphics/win32/graphics_win32.c +++ b/navit/graphics/win32/graphics_win32.c @@ -912,12 +912,6 @@ static void draw_circle(struct graphics_priv *gr, struct graphics_gc_priv *gc, s } - -static void draw_restore(struct graphics_priv *gr, struct point *p, int w, int h) -{ - InvalidateRect( gr->wnd_handle, NULL, FALSE ); -} - static void draw_drag(struct graphics_priv *gr, struct point *p) { if ( p ) @@ -1578,7 +1572,6 @@ static struct graphics_methods graphics_methods = #else NULL, #endif - draw_restore, draw_drag, font_new, gc_new, |