[gimp/soc-2010-cage-2] app: remove the unused gimp_display_shell_expose_vectors()
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/soc-2010-cage-2] app: remove the unused gimp_display_shell_expose_vectors()
- Date: Thu, 30 Dec 2010 18:10:20 +0000 (UTC)
commit 6ed8fd0574a510ebccad6b7215c75cd0d0b3cf53
Author: Michael Natterer <mitch gimp org>
Date: Sat Nov 13 23:02:07 2010 +0100
app: remove the unused gimp_display_shell_expose_vectors()
app/display/gimpdisplayshell-expose.c | 36 ---------------------------------
app/display/gimpdisplayshell-expose.h | 18 +++++++---------
2 files changed, 8 insertions(+), 46 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-expose.c b/app/display/gimpdisplayshell-expose.c
index 8c79f54..93b0f98 100644
--- a/app/display/gimpdisplayshell-expose.c
+++ b/app/display/gimpdisplayshell-expose.c
@@ -17,19 +17,13 @@
#include "config.h"
-#include <gegl.h>
#include <gtk/gtk.h>
-#include "libgimpmath/gimpmath.h"
-
#include "display-types.h"
-#include "vectors/gimpvectors.h"
-
#include "gimpcanvasitem.h"
#include "gimpdisplayshell.h"
#include "gimpdisplayshell-expose.h"
-#include "gimpdisplayshell-transform.h"
void
@@ -82,36 +76,6 @@ gimp_display_shell_expose_region (GimpDisplayShell *shell,
}
void
-gimp_display_shell_expose_vectors (GimpDisplayShell *shell,
- GimpVectors *vectors)
-{
- gdouble x1, y1;
- gdouble x2, y2;
-
- g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
- g_return_if_fail (vectors != NULL);
-
- if (gimp_vectors_bounds (vectors, &x1, &y1, &x2, &y2))
- {
- gint x, y, w, h;
-
- gimp_display_shell_transform_xy_f (shell, x1, y1, &x1, &y1);
- gimp_display_shell_transform_xy_f (shell, x2, y2, &x2, &y2);
-
- x = floor (x1);
- y = floor (y1);
- w = ceil (x2) - x;
- h = ceil (y2) - y;
-
- gimp_display_shell_expose_area (shell,
- x - 2,
- y - 2,
- w + 4,
- h + 4);
- }
-}
-
-void
gimp_display_shell_expose_full (GimpDisplayShell *shell)
{
g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
diff --git a/app/display/gimpdisplayshell-expose.h b/app/display/gimpdisplayshell-expose.h
index d3a1f2a..6df82f7 100644
--- a/app/display/gimpdisplayshell-expose.h
+++ b/app/display/gimpdisplayshell-expose.h
@@ -19,16 +19,14 @@
#define __GIMP_DISPLAY_SHELL_EXPOSE_H__
-void gimp_display_shell_expose_area (GimpDisplayShell *shell,
- gint x,
- gint y,
- gint w,
- gint h);
-void gimp_display_shell_expose_region (GimpDisplayShell *shell,
- cairo_region_t *region);
-void gimp_display_shell_expose_vectors (GimpDisplayShell *shell,
- GimpVectors *vectors);
-void gimp_display_shell_expose_full (GimpDisplayShell *shell);
+void gimp_display_shell_expose_area (GimpDisplayShell *shell,
+ gint x,
+ gint y,
+ gint w,
+ gint h);
+void gimp_display_shell_expose_region (GimpDisplayShell *shell,
+ cairo_region_t *region);
+void gimp_display_shell_expose_full (GimpDisplayShell *shell);
#endif /* __GIMP_DISPLAY_SHELL_EXPOSE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]