diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-06-21 12:38:41 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-09-27 12:05:47 +0200 |
commit | b14dc0498d6e267158028ab84a0d26d5f5d007a9 (patch) | |
tree | 77ddd013a0e7f358ab21cf4004bf25ce06e5afe4 | |
parent | f73f8b446ce249e9c6e795194b8108bed8d4dd3c (diff) | |
download | totem-pl-parser-wip/hadess/remove-metadata.tar.gz |
plparser: Remove unused TotemPlParserMetadata data typewip/hadess/remove-metadata
-rw-r--r-- | plparse/totem-pl-parser.c | 21 | ||||
-rw-r--r-- | plparse/totem-pl-parser.h | 5 |
2 files changed, 0 insertions, 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 */ |