diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2022-06-22 22:56:24 +0200 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2022-06-26 21:16:33 +0200 |
commit | ab45dcf5dca5d4bcbedded89ed7bc451be19dc0c (patch) | |
tree | efd504cca159d75da590387877c79e327b042cb8 /lib | |
parent | c214cde3d344e80f3a46e15cfe592202683a64d7 (diff) | |
download | gnome-maps-ab45dcf5dca5d4bcbedded89ed7bc451be19dc0c.tar.gz |
Remove maps-enum-types
This was used by the contact store
and is now being unused.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/maps-enum-types.c.template | 31 | ||||
-rw-r--r-- | lib/maps-enum-types.h.template | 36 | ||||
-rw-r--r-- | lib/meson.build | 15 |
3 files changed, 2 insertions, 80 deletions
diff --git a/lib/maps-enum-types.c.template b/lib/maps-enum-types.c.template deleted file mode 100644 index 188506a0..00000000 --- a/lib/maps-enum-types.c.template +++ /dev/null @@ -1,31 +0,0 @@ -/*** BEGIN file-header ***/ -#include "maps-enum-types.h" - -/*** END file-header ***/ - -/*** BEGIN file-production ***/ -/* enumerations from "@filename@" */ -/*** END file-production ***/ - -/*** BEGIN value-header ***/ -GType -@enum_name@_get_type (void) -{ - static GType etype = 0; - if (etype == 0) { - static const G@Type@Value values[] = { -/*** END value-header ***/ - -/*** BEGIN value-production ***/ - { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, -/*** END value-production ***/ - -/*** BEGIN value-tail ***/ - { 0, NULL, NULL } - }; - etype = g_@type@_register_static ("@EnumName@", values); - } - return etype; -} - -/*** END value-tail ***/ diff --git a/lib/maps-enum-types.h.template b/lib/maps-enum-types.h.template deleted file mode 100644 index 14171b23..00000000 --- a/lib/maps-enum-types.h.template +++ /dev/null @@ -1,36 +0,0 @@ -/*** BEGIN file-header ***/ -#ifndef __MAPS_ENUM_TYPES_H__ -#define __MAPS_ENUM_TYPES_H__ - -#include "maps.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 MAPS_TYPE_@ENUMSHORT@ (@enum_name@_get_type()) - -/** - * SECTION:maps-enum-types - * @short_description: Maps enumerated types - * @include: maps.h - * - * The enumerated types defined and used by libgnome-maps. - **/ - -/*** END value-header ***/ - -/*** BEGIN file-tail ***/ -G_END_DECLS - -#endif /* __MAPS_ENUM_TYPES_H__ */ - -/*** END file-tail ***/ diff --git a/lib/meson.build b/lib/meson.build index bdbb4b01..27a1f846 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -22,17 +22,6 @@ sources = files( 'maps-osm-oauth-proxy-call.c' ) -enum_types = 'maps-enum-types' - -maps_enums = gnome.mkenums( - enum_types, - sources: headers_private, - c_template: enum_types + '.c.template', - h_template: enum_types + '.h.template', - identifier_prefix: maps_ns, - symbol_prefix: maps_ns.to_lower() -) - cflags = [ '-DG_DISABLE_DEPRECATED', '-DPREFIX="@0@"'.format(prefix), @@ -42,7 +31,7 @@ cflags = [ libmaps = shared_library( maps_libname, version: '0.0.0', - sources: sources + maps_enums, + sources: sources, include_directories: top_inc, dependencies: libmaps_deps, c_args: cflags, @@ -52,7 +41,7 @@ libmaps = shared_library( gnome.generate_gir( libmaps, - sources: sources + [maps_enums, headers_private], + sources: sources + [headers_private], nsversion: maps_gir_version, namespace: maps_gir_name, identifier_prefix: maps_ns, |