diff options
author | Daniel Kolesa <daniel@octaforge.org> | 2022-03-26 04:04:46 +0100 |
---|---|---|
committer | Daniel Kolesa <daniel@octaforge.org> | 2022-03-27 00:16:27 +0100 |
commit | ee7842edca943555681e447a0a83d062a3050c5c (patch) | |
tree | 1a575f7511f834b78677ca94963a5ccc5dc3aab1 | |
parent | f1005e635c63405c0eebd6398dba699e448f92eb (diff) | |
download | libosinfo-ee7842edca943555681e447a0a83d062a3050c5c.tar.gz |
build: remove unused enum template files
These are not used as Meson uses its own builtin ones in the
gnome module, so they were just left over.
They were also incorrect as G_GNUC_CONST on _get_type would
break things (_get_type functions have side effects here).
Signed-off-by: Daniel Kolesa <daniel@octaforge.org>
-rw-r--r-- | osinfo/osinfo_enum_types.c.template | 36 | ||||
-rw-r--r-- | osinfo/osinfo_enum_types.h.template | 24 |
2 files changed, 0 insertions, 60 deletions
diff --git a/osinfo/osinfo_enum_types.c.template b/osinfo/osinfo_enum_types.c.template deleted file mode 100644 index 1f3e474..0000000 --- a/osinfo/osinfo_enum_types.c.template +++ /dev/null @@ -1,36 +0,0 @@ -/*** BEGIN file-header ***/ -#include <osinfo/osinfo.h> - -/*** END file-header ***/ - -/*** BEGIN file-production ***/ -/* enumerations from "@filename@" */ -/*** END file-production ***/ - -/*** BEGIN value-header ***/ -GType -@enum_name@_get_type (void) -{ - static volatile gsize g_define_type_id__volatile = 0; - - if (g_once_init_enter (&g_define_type_id__volatile)) - { - static const G@Type@Value values[] = { -/*** END value-header ***/ - -/*** BEGIN value-production ***/ - { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, -/*** END value-production ***/ - -/*** BEGIN value-tail ***/ - { 0, NULL, NULL } - }; - GType g_define_type_id = - g_@type@_register_static (g_intern_static_string ("@EnumName@"), values); - g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); - } - - return g_define_type_id__volatile; -} - -/*** END value-tail ***/ diff --git a/osinfo/osinfo_enum_types.h.template b/osinfo/osinfo_enum_types.h.template deleted file mode 100644 index 3f4ce1f..0000000 --- a/osinfo/osinfo_enum_types.h.template +++ /dev/null @@ -1,24 +0,0 @@ -/*** BEGIN file-header ***/ -#ifndef __OSINFO_ENUM_TYPES_H__ -#define __OSINFO_ENUM_TYPES_H__ - -#include <osinfo/osinfo.h> - -G_BEGIN_DECLS -/*** END file-header ***/ - -/*** BEGIN file-production ***/ - -/* enumerations from "@filename@" */ -/*** END file-production ***/ - -/*** BEGIN value-header ***/ -GType @enum_name@_get_type (void) G_GNUC_CONST; -#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ()) -/*** END value-header ***/ - -/*** BEGIN file-tail ***/ -G_END_DECLS - -#endif /* __OSINFO_ENUM_TYPES_H__ */ -/*** END file-tail ***/ |