[gimp] app: remove xcf_seek_end(), it's unused, and should not be used any longer



commit b9ff01306ee28d7356800374d47dc353a87ceff0
Author: Michael Natterer <mitch gimp org>
Date:   Wed Oct 15 23:21:34 2014 +0200

    app: remove xcf_seek_end(), it's unused, and should not be used any longer

 app/xcf/xcf-seek.c |   20 +-------------------
 app/xcf/xcf-seek.h |    2 --
 2 files changed, 1 insertions(+), 21 deletions(-)
---
diff --git a/app/xcf/xcf-seek.c b/app/xcf/xcf-seek.c
index 955da5d..140bc3e 100644
--- a/app/xcf/xcf-seek.c
+++ b/app/xcf/xcf-seek.c
@@ -26,6 +26,7 @@
 
 #include "gimp-intl.h"
 
+
 gboolean
 xcf_seek_pos (XcfInfo  *info,
               guint     pos,
@@ -50,22 +51,3 @@ xcf_seek_pos (XcfInfo  *info,
 
   return TRUE;
 }
-
-gboolean
-xcf_seek_end (XcfInfo  *info,
-              GError  **error)
-{
-  GError *my_error = NULL;
-
-  if (! g_seekable_seek (info->seekable, 0, G_SEEK_END,
-                         NULL, &my_error))
-    {
-      g_propagate_prefixed_error (error, my_error,
-                                  _("Could not seek in XCF file: "));
-      return FALSE;
-    }
-
-  info->cp = g_seekable_tell (info->seekable);
-
-  return TRUE;
-}
diff --git a/app/xcf/xcf-seek.h b/app/xcf/xcf-seek.h
index 638620a..ede3f2f 100644
--- a/app/xcf/xcf-seek.h
+++ b/app/xcf/xcf-seek.h
@@ -22,8 +22,6 @@
 gboolean   xcf_seek_pos (XcfInfo *info,
                          guint    pos,
                          GError **error);
-gboolean   xcf_seek_end (XcfInfo *info,
-                         GError **error);
 
 
 #endif  /* __XCF_SEEK_H__ */


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