[gimp] plug-ins: Remove unused read_extended_data_block() in file-psd.c



commit 7976f21a35154cd78ad6dcf8d5586125b03b67f4
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue Jul 14 11:48:03 2009 +0200

    plug-ins: Remove unused read_extended_data_block() in file-psd.c

 plug-ins/common/file-psp.c |   33 ---------------------------------
 1 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/plug-ins/common/file-psp.c b/plug-ins/common/file-psp.c
index 22ee9e4..1e77b26 100644
--- a/plug-ins/common/file-psp.c
+++ b/plug-ins/common/file-psp.c
@@ -852,39 +852,6 @@ try_fseek (FILE  *f,
   return 0;
 }
 
-static gint
-read_extended_data_block (FILE     *f,
-                          gint      image_ID,
-                          guint     total_len,
-                          PSPimage *ia)
-{
-  long    data_start;
-  guchar  buf[4];
-  guint16 keyword;
-  guint32 length;
-
-  data_start = ftell (f);
-
-  while (ftell (f) < data_start + total_len)
-    {
-      if (fread (buf, 4, 1, f) < 1
-          || fread (&keyword, 2, 1, f) < 1
-          || fread (&length, 4, 1, f) < 1)
-        {
-          g_message ("Error reading extended data chunk");
-          return -1;
-        }
-      if (memcmp (buf, "~FL\0", 4) != 0)
-        {
-          g_message ("Invalid extended data chunk header");
-          return -1;
-        }
-      /* TODO Read keyword and assign it to PSPExtendedDataID */
-    }
-
-  return 0;
-}
-
 
 
 static gint



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