[tracker/wip/carlosg/drop-common-enums] libtracker-common: Drop unused enum
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/drop-common-enums] libtracker-common: Drop unused enum
- Date: Mon, 4 Jul 2022 09:44:52 +0000 (UTC)
commit 541cac06693294fef0c4087e3c08bd850e46ef3f
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jul 4 11:23:28 2022 +0200
libtracker-common: Drop unused enum
And GType boilerplate generation. This enum is entirely unused
in the tracker code and is thus unneeded.
src/libtracker-common/.gitignore | 1 -
src/libtracker-common/meson.build | 12 ------
src/libtracker-common/tracker-common.h | 1 -
.../tracker-enum-types.c.template | 44 ----------------------
.../tracker-enum-types.h.template | 26 -------------
src/libtracker-common/tracker-enums.h | 38 -------------------
6 files changed, 122 deletions(-)
---
diff --git a/src/libtracker-common/.gitignore b/src/libtracker-common/.gitignore
index 6b4eece96..2475fb8e2 100644
--- a/src/libtracker-common/.gitignore
+++ b/src/libtracker-common/.gitignore
@@ -1,4 +1,3 @@
tracker-turtle-writer.c
tracker-turtle-writer.h
-tracker-enum-types.[c|h]
tracker-parser-sha1.h
diff --git a/src/libtracker-common/meson.build b/src/libtracker-common/meson.build
index aff153637..9ea3d660d 100644
--- a/src/libtracker-common/meson.build
+++ b/src/libtracker-common/meson.build
@@ -1,15 +1,5 @@
subdir('stop-words')
-tracker_common_enums_header = files('tracker-enums.h')
-
-enums = gnome.mkenums('tracker-enum-types',
- sources: tracker_common_enums_header,
- c_template: 'tracker-enum-types.c.template',
- h_template: 'tracker-enum-types.h.template',
-)
-
-tracker_common_enum_header = enums[1]
-
tracker_common_sources = [
'tracker-date-time.c',
'tracker-debug.c',
@@ -19,7 +9,6 @@ tracker_common_sources = [
'tracker-locale.c',
'tracker-parser-utils.c',
'tracker-language.c',
- enums[0], enums[1],
]
if unicode_library_name == 'icu'
@@ -46,7 +35,6 @@ libtracker_common = static_library('tracker-common',
commoninc = include_directories('.')
tracker_common_dep = declare_dependency(
- sources: [tracker_common_enum_header],
link_with: libtracker_common,
dependencies: tracker_common_dependencies,
include_directories: [configinc, srcinc, commoninc],
diff --git a/src/libtracker-common/tracker-common.h b/src/libtracker-common/tracker-common.h
index 5bc03c9bf..e572b6ebc 100644
--- a/src/libtracker-common/tracker-common.h
+++ b/src/libtracker-common/tracker-common.h
@@ -36,7 +36,6 @@
#include "tracker-term-utils.h"
#include "tracker-utils.h"
#include "tracker-locale.h"
-#include "tracker-enum-types.h"
#undef __LIBTRACKER_COMMON_INSIDE__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]