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



commit bc298871dc176bf42121336eaa5541eff7882610
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
    
    (cherry picked from commit b9ff01306ee28d7356800374d47dc353a87ceff0)

 app/xcf/xcf-seek.c |   36 ------------------------------------
 app/xcf/xcf-seek.h |    2 --
 2 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/app/xcf/xcf-seek.c b/app/xcf/xcf-seek.c
index 3821197..3641028 100644
--- a/app/xcf/xcf-seek.c
+++ b/app/xcf/xcf-seek.c
@@ -67,39 +67,3 @@ xcf_seek_pos (XcfInfo  *info,
 
   return TRUE;
 }
-
-/**
- * xcf_seek_end:
- * @info: #XcfInfo structure of the file under work
- * @error: Return location for errors
- *
- * Changes the file position in the input or output stream to the file end.
- *
- * Returns: %TRUE in case of success; %FALSE otherwise
- */
-gboolean
-xcf_seek_end (XcfInfo  *info,
-              GError  **error)
-{
-  if (fseek (info->fp, 0, SEEK_END) == -1)
-    {
-      g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
-                   _("Could not seek in XCF file: %s"),
-                   g_strerror (errno));
-
-      return FALSE;
-    }
-
-  info->cp = ftell (info->fp);
-
-  if (fseek (info->fp, 0, SEEK_END) == -1)
-    {
-      g_set_error (error, G_FILE_ERROR, g_file_error_from_errno (errno),
-                   _("Could not seek in XCF file: %s"),
-                   g_strerror (errno));
-
-      return FALSE;
-    }
-
-  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]