[libgdata] core: Remove outdated gdata_parser_int64_to_json_iso8601()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] core: Remove outdated gdata_parser_int64_to_json_iso8601()
- Date: Sat, 9 Aug 2014 20:29:55 +0000 (UTC)
commit 45459fba6f808340d7b509c51fadf32438e5c58a
Author: Philip Withnall <philip tecnocode co uk>
Date: Sat Aug 9 21:14:47 2014 +0100
core: Remove outdated gdata_parser_int64_to_json_iso8601()
gdata_parser_int64_to_iso8601() now does exactly the same.
https://bugzilla.gnome.org/show_bug.cgi?id=732809
gdata/gdata-entry.c | 2 +-
gdata/gdata-parser.c | 6 ------
gdata/gdata-parser.h | 1 -
.../freebase/gdata-freebase-search-query.c | 2 +-
gdata/services/tasks/gdata-tasks-task.c | 4 ++--
5 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/gdata/gdata-entry.c b/gdata/gdata-entry.c
index 4d6e4d9..1c18962 100644
--- a/gdata/gdata-entry.c
+++ b/gdata/gdata-entry.c
@@ -652,7 +652,7 @@ get_json (GDataParsable *parsable, JsonBuilder *builder)
}
if (priv->updated != -1) {
- gchar *updated = gdata_parser_int64_to_json_iso8601 (priv->updated);
+ gchar *updated = gdata_parser_int64_to_iso8601 (priv->updated);
json_builder_set_member_name (builder, "updated");
json_builder_add_string_value (builder, updated);
g_free (updated);
diff --git a/gdata/gdata-parser.c b/gdata/gdata-parser.c
index 4409de5..2877471 100644
--- a/gdata/gdata-parser.c
+++ b/gdata/gdata-parser.c
@@ -266,12 +266,6 @@ gdata_parser_int64_to_iso8601 (gint64 _time)
return retval;
}
-gchar *
-gdata_parser_int64_to_json_iso8601 (gint64 _time)
-{
- return gdata_parser_int64_to_iso8601 (_time);
-}
-
gboolean
gdata_parser_int64_from_iso8601 (const gchar *date, gint64 *_time)
{
diff --git a/gdata/gdata-parser.h b/gdata/gdata-parser.h
index d6bcea7..2c5ad2f 100644
--- a/gdata/gdata-parser.h
+++ b/gdata/gdata-parser.h
@@ -42,7 +42,6 @@ gboolean gdata_parser_error_not_iso8601_format_json (JsonReader *reader, const g
gboolean gdata_parser_int64_from_date (const gchar *date, gint64 *_time);
gchar *gdata_parser_date_from_int64 (gint64 _time) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
gchar *gdata_parser_int64_to_iso8601 (gint64 _time) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
-gchar *gdata_parser_int64_to_json_iso8601 (gint64 _time) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
gboolean gdata_parser_int64_from_iso8601 (const gchar *date, gint64 *_time);
/*
diff --git a/gdata/services/freebase/gdata-freebase-search-query.c
b/gdata/services/freebase/gdata-freebase-search-query.c
index 68f72d4..ec9ea87 100644
--- a/gdata/services/freebase/gdata-freebase-search-query.c
+++ b/gdata/services/freebase/gdata-freebase-search-query.c
@@ -289,7 +289,7 @@ get_query_uri (GDataQuery *self, const gchar *feed_uri, GString *query_uri, gboo
if (updated_max != -1) {
gchar *date_str;
- date_str = gdata_parser_int64_to_json_iso8601 (updated_max);
+ date_str = gdata_parser_int64_to_iso8601 (updated_max);
APPEND_SEP;
g_string_append (query_uri, "as_of_time=");
diff --git a/gdata/services/tasks/gdata-tasks-task.c b/gdata/services/tasks/gdata-tasks-task.c
index 7580f63..6f00fcf 100644
--- a/gdata/services/tasks/gdata-tasks-task.c
+++ b/gdata/services/tasks/gdata-tasks-task.c
@@ -345,13 +345,13 @@ get_json (GDataParsable *parsable, JsonBuilder *builder)
json_builder_add_string_value (builder, priv->status);
}
if (priv->due != -1) {
- due = gdata_parser_int64_to_json_iso8601 (priv->due);
+ due = gdata_parser_int64_to_iso8601 (priv->due);
json_builder_set_member_name (builder, "due");
json_builder_add_string_value (builder, due);
g_free (due);
}
if (priv->completed != -1) {
- completed = gdata_parser_int64_to_json_iso8601 (priv->completed);
+ completed = gdata_parser_int64_to_iso8601 (priv->completed);
json_builder_set_member_name (builder, "completed");
json_builder_add_string_value (builder, completed);
g_free (completed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]