[gimp] app: remove gimp_draw_tool_add_transform_guides()



commit f5a6c859d7ede8ef517cbe7472e85003bf2bf8c1
Author: Michael Natterer <mitch gimp org>
Date:   Mon Jun 19 08:08:14 2017 +0200

    app: remove gimp_draw_tool_add_transform_guides()

 app/tools/gimpdrawtool.c |   25 -------------------------
 app/tools/gimpdrawtool.h |    8 --------
 2 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index 327de1b..89113a8 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -951,31 +951,6 @@ gimp_draw_tool_add_text_cursor (GimpDrawTool   *draw_tool,
 }
 
 GimpCanvasItem *
-gimp_draw_tool_add_transform_guides (GimpDrawTool      *draw_tool,
-                                     const GimpMatrix3 *transform,
-                                     GimpGuidesType     type,
-                                     gint               n_guides,
-                                     gdouble            x1,
-                                     gdouble            y1,
-                                     gdouble            x2,
-                                     gdouble            y2)
-{
-  GimpCanvasItem *item;
-
-  g_return_val_if_fail (GIMP_IS_DRAW_TOOL (draw_tool), NULL);
-  g_return_val_if_fail (transform != NULL, NULL);
-
-  item = gimp_canvas_transform_guides_new (gimp_display_get_shell (draw_tool->display),
-                                           transform, x1, y1, x2, y2,
-                                           type, n_guides);
-
-  gimp_draw_tool_add_item (draw_tool, item);
-  g_object_unref (item);
-
-  return item;
-}
-
-GimpCanvasItem *
 gimp_draw_tool_add_transform_preview (GimpDrawTool      *draw_tool,
                                       GimpDrawable      *drawable,
                                       const GimpMatrix3 *transform,
diff --git a/app/tools/gimpdrawtool.h b/app/tools/gimpdrawtool.h
index 94599cd..5d67f72 100644
--- a/app/tools/gimpdrawtool.h
+++ b/app/tools/gimpdrawtool.h
@@ -143,14 +143,6 @@ GimpCanvasItem * gimp_draw_tool_add_arc              (GimpDrawTool     *draw_too
                                                       gdouble           height,
                                                       gdouble           start_angle,
                                                       gdouble           slice_angle);
-GimpCanvasItem * gimp_draw_tool_add_transform_guides (GimpDrawTool     *draw_tool,
-                                                      const GimpMatrix3 *transform,
-                                                      GimpGuidesType    type,
-                                                      gint              n_guides,
-                                                      gdouble           x1,
-                                                      gdouble           y1,
-                                                      gdouble           x2,
-                                                      gdouble           y2);
 GimpCanvasItem * gimp_draw_tool_add_transform_preview(GimpDrawTool     *draw_tool,
                                                       GimpDrawable     *drawable,
                                                       const GimpMatrix3 *transform,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]