[sound-juicer] Remove unused helper



commit 7d725ce60da9e66e578d47c7dedbe1b099b836e3
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Tue Apr 8 13:15:32 2014 +0200

    Remove unused helper
    
    With the switch to GstDateTime, we use
    gst_date_time_new_from_iso8601_string() and the
    sj_metadata_helper_scan_date() helper is no longer needed.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693048

 libjuicer/sj-metadata.c |   16 ----------------
 libjuicer/sj-metadata.h |    1 -
 2 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/libjuicer/sj-metadata.c b/libjuicer/sj-metadata.c
index d02f7fe..7f85d67 100644
--- a/libjuicer/sj-metadata.c
+++ b/libjuicer/sj-metadata.c
@@ -149,22 +149,6 @@ sj_metadata_helper_scan_disc_number (const char *album_title, int *disc_number)
   return new_title;
 }
 
-GDate *
-sj_metadata_helper_scan_date (const char *date)
-{
-  int matched, year=1, month=1, day=1;
-
-  if (date == NULL)
-    return NULL;
-
-  matched = sscanf (date, "%u-%u-%u", &year, &month, &day);
-  if (matched >= 1) {
-    return g_date_new_dmy ((day == 0) ? 1 : day, (month == 0) ? 1 : month, year);
-  }
-
-  return NULL;
-}
-
 gboolean
 sj_metadata_helper_check_media (const char *cdrom, GError **error)
 {
diff --git a/libjuicer/sj-metadata.h b/libjuicer/sj-metadata.h
index 5b79dd6..61fa4fc 100644
--- a/libjuicer/sj-metadata.h
+++ b/libjuicer/sj-metadata.h
@@ -47,7 +47,6 @@ void sj_metadata_set_cdrom (SjMetadata *metadata, const char* device);
 GList * sj_metadata_list_albums (SjMetadata *metadata, char **url, GError **error);
 
 char * sj_metadata_helper_scan_disc_number (const char *album_title, int *disc_number);
-GDate * sj_metadata_helper_scan_date (const char *date);
 gboolean sj_metadata_helper_check_media (const char *cdrom, GError **error);
 char * sj_metadata_helper_lookup_country_code (const char *code);
 void sj_metadata_helper_cleanup (void);


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