[gimp/metadata-browser] app: remove GimpDisplayShell-scroll API that is now unused



commit da8f4b54c6f8c270db6c9ff958bcb0f8f29a1808
Author: Michael Natterer <mitch gimp org>
Date:   Sat Jun 30 12:33:27 2012 +0200

    app: remove GimpDisplayShell-scroll API that is now unused

 app/display/gimpdisplayshell-scroll.c |   63 ---------------------------------
 app/display/gimpdisplayshell-scroll.h |    6 ---
 2 files changed, 0 insertions(+), 69 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-scroll.c b/app/display/gimpdisplayshell-scroll.c
index 92d2eaf..4a2614f 100644
--- a/app/display/gimpdisplayshell-scroll.c
+++ b/app/display/gimpdisplayshell-scroll.c
@@ -471,69 +471,6 @@ gimp_display_shell_scroll_get_viewport (const GimpDisplayShell *shell,
 }
 
 /**
- * gimp_display_shell_scroll_get_disp_offset:
- * @shell:
- * @disp_xoffset:
- * @disp_yoffset:
- *
- * In viewport coordinates, get the offset of where to start rendering
- * the scaled image.
- *
- **/
-void
-gimp_display_shell_scroll_get_disp_offset (const GimpDisplayShell *shell,
-                                           gint                   *disp_xoffset,
-                                           gint                   *disp_yoffset)
-{
-  g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
-
-  if (disp_xoffset)
-    {
-      if (shell->offset_x < 0)
-        {
-          *disp_xoffset = -shell->offset_x;
-        }
-      else
-        {
-          *disp_xoffset = 0;
-        }
-    }
-
-  if (disp_yoffset)
-    {
-      if (shell->offset_y < 0)
-        {
-          *disp_yoffset = -shell->offset_y;
-        }
-      else
-        {
-          *disp_yoffset = 0;
-        }
-    }
-}
-
-/**
- * gimp_display_shell_scroll_get_render_start_offset:
- * @shell:
- * @offset_x:
- * @offset_y:
- *
- * Get the offset into the scaled image that we should start render
- * from
- *
- **/
-void
-gimp_display_shell_scroll_get_render_start_offset (const GimpDisplayShell *shell,
-                                                   gint                   *offset_x,
-                                                   gint                   *offset_y)
-{
-  g_return_if_fail (GIMP_IS_DISPLAY_SHELL (shell));
-
-  *offset_x = MAX (0, shell->offset_x);
-  *offset_y = MAX (0, shell->offset_y);
-}
-
-/**
  * gimp_display_shell_scroll_setup_hscrollbar:
  * @shell:
  * @value:
diff --git a/app/display/gimpdisplayshell-scroll.h b/app/display/gimpdisplayshell-scroll.h
index 3759fbc..ae84372 100644
--- a/app/display/gimpdisplayshell-scroll.h
+++ b/app/display/gimpdisplayshell-scroll.h
@@ -52,12 +52,6 @@ void   gimp_display_shell_scroll_get_viewport               (const GimpDisplaySh
                                                              gdouble                *y,
                                                              gdouble                *w,
                                                              gdouble                *h);
-void   gimp_display_shell_scroll_get_disp_offset            (const GimpDisplayShell *shell,
-                                                             gint                   *disp_xoffset,
-                                                             gint                   *disp_yoffset);
-void   gimp_display_shell_scroll_get_render_start_offset    (const GimpDisplayShell *shell,
-                                                             gint                   *offset_x,
-                                                             gint                   *offset_y);
 void   gimp_display_shell_scroll_setup_hscrollbar           (GimpDisplayShell       *shell,
                                                              gdouble                 value);
 void   gimp_display_shell_scroll_setup_vscrollbar           (GimpDisplayShell       *shell,



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