X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgst-plugins-bad%2Fext%2Fgs%2Fgstgscommon.cpp;h=b954b3fb4491de4f6108c94a930d644f978b4e2e;hb=9d9e59622f0531781a76e1d8ac96471cb14c6677;hp=8326baaa68de5e8cf0cdbd18415c98fc0ac23905;hpb=92a4088621f31aca725abad70473343916610fe3;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gst-plugins-bad/ext/gs/gstgscommon.cpp b/subprojects/gst-plugins-bad/ext/gs/gstgscommon.cpp index 8326baa..b954b3f 100644 --- a/subprojects/gst-plugins-bad/ext/gs/gstgscommon.cpp +++ b/subprojects/gst-plugins-bad/ext/gs/gstgscommon.cpp @@ -25,37 +25,6 @@ namespace gcs = google::cloud::storage; -namespace { - -#if !GLIB_CHECK_VERSION(2, 62, 0) -static inline gchar* g_date_time_format_iso8601(GDateTime* datetime) { - GString* outstr = NULL; - gchar* main_date = NULL; - gint64 offset; - - // Main date and time. - main_date = g_date_time_format(datetime, "%Y-%m-%dT%H:%M:%S"); - outstr = g_string_new(main_date); - g_free(main_date); - - // Timezone. Format it as `%:::z` unless the offset is zero, in which case - // we can simply use `Z`. - offset = g_date_time_get_utc_offset(datetime); - - if (offset == 0) { - g_string_append_c(outstr, 'Z'); - } else { - gchar* time_zone = g_date_time_format(datetime, "%:::z"); - g_string_append(outstr, time_zone); - g_free(time_zone); - } - - return g_string_free(outstr, FALSE); -} -#endif - -} // namespace - std::unique_ptr gst_gs_create_client( const gchar* service_account_email, const gchar* service_account_credentials,