[gimp] app: remove gimp_display_shell_scroll_clamp_offsets()



commit d2284933209626f5ca4461e50f5394194c6b33d5
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jan 5 17:38:56 2016 +0100

    app: remove gimp_display_shell_scroll_clamp_offsets()
    
    and merge it into gimp_display_shell_scroll_clamp_and_update(), the
    removed function is not any longer needed separately.

 app/display/gimpdisplayshell-scroll.c |   27 +++++++++------------------
 1 files changed, 9 insertions(+), 18 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-scroll.c b/app/display/gimpdisplayshell-scroll.c
index dc214d8..e1cc5d4 100644
--- a/app/display/gimpdisplayshell-scroll.c
+++ b/app/display/gimpdisplayshell-scroll.c
@@ -45,9 +45,6 @@
 #define MINIMUM_STEP_AMOUNT 1.0
 
 
-static void   gimp_display_shell_scroll_clamp_offsets (GimpDisplayShell *shell);
-
-
 /**
  * gimp_display_shell_scroll:
  * @shell:
@@ -142,8 +139,15 @@ gimp_display_shell_scroll_set_offset (GimpDisplayShell *shell,
   gimp_display_shell_resume (shell);
 }
 
-static void
-gimp_display_shell_scroll_clamp_offsets (GimpDisplayShell *shell)
+/**
+ * gimp_display_shell_scroll_clamp_and_update:
+ * @shell:
+ *
+ * Helper function for calling two functions that are commonly called
+ * in pairs.
+ **/
+void
+gimp_display_shell_scroll_clamp_and_update (GimpDisplayShell *shell)
 {
   GimpImage *image;
 
@@ -226,19 +230,6 @@ gimp_display_shell_scroll_clamp_offsets (GimpDisplayShell *shell)
       shell->offset_x = 0;
       shell->offset_y = 0;
     }
-}
-
-/**
- * gimp_display_shell_scroll_clamp_and_update:
- * @shell:
- *
- * Helper function for calling two functions that are commonly called
- * in pairs.
- **/
-void
-gimp_display_shell_scroll_clamp_and_update (GimpDisplayShell *shell)
-{
-  gimp_display_shell_scroll_clamp_offsets (shell);
 
   gimp_display_shell_scale_update_scrollbars (shell);
   gimp_display_shell_scale_update_rulers (shell);


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