[totem-pl-parser/wip/hadess/remove-metadata: 3/3] plparser: Remove unused TotemPlParserMetadata data type
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser/wip/hadess/remove-metadata: 3/3] plparser: Remove unused TotemPlParserMetadata data type
- Date: Tue, 27 Sep 2022 10:06:13 +0000 (UTC)
commit b14dc0498d6e267158028ab84a0d26d5f5d007a9
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jun 21 12:38:41 2022 +0200
plparser: Remove unused TotemPlParserMetadata data type
plparse/totem-pl-parser.c | 21 ---------------------
plparse/totem-pl-parser.h | 5 -----
2 files changed, 26 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index edb4cdf..583aa4a 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -2787,24 +2787,3 @@ totem_pl_parser_can_parse_from_uri (const char *uri, gboolean debug)
{
return totem_pl_parser_is_videosite (uri, debug);
}
-
-#ifndef TOTEM_PL_PARSER_MINI
-GType
-totem_pl_parser_metadata_get_type (void)
-{
- static gsize g_define_type_id__volatile = 0;
- if (g_once_init_enter (&g_define_type_id__volatile))
- {
- /* NOTE: This is equivalent to the definition for GHashTable in gboxed.c, in that it uses the
same copy/free functions.
- * This means that if we box a TotemPlParserMetadata inside a GValue, we can safely unbox it
as a GHashTable (and vice-versa).
- * This means we can hide TotemPlParserMetadata from introspection, and just pretend it's
actually been a GHashTable all along. */
- GType g_define_type_id = g_boxed_type_register_static (
- g_intern_static_string ("TotemPlParserMetadata"),
- (GBoxedCopyFunc) g_hash_table_ref,
- (GBoxedFreeFunc) g_hash_table_unref);
- g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
- }
- return g_define_type_id__volatile;
-}
-#endif /* !TOTEM_PL_PARSER_MINI */
-
diff --git a/plparse/totem-pl-parser.h b/plparse/totem-pl-parser.h
index 7cee4d1..655feaf 100644
--- a/plparse/totem-pl-parser.h
+++ b/plparse/totem-pl-parser.h
@@ -427,11 +427,6 @@ TotemPlParser *totem_pl_parser_new (void);
*/
typedef GHashTable TotemPlParserMetadata;
-GType totem_pl_parser_metadata_get_type (void) G_GNUC_CONST;
-#define TOTEM_TYPE_PL_PARSER_METADATA (totem_pl_parser_metadata_get_type())
-
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(TotemPlParserMetadata, g_hash_table_destroy)
-
G_END_DECLS
#endif /* TOTEM_PL_PARSER_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]