[tracker/wip/carlosg/backports-3.3: 1/2] libtracker-common: Drop unused enum
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/backports-3.3: 1/2] libtracker-common: Drop unused enum
- Date: Tue, 5 Jul 2022 12:42:21 +0000 (UTC)
commit 06d87e6da907d67f0329469958575f2096fab813
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 -------------------
src/libtracker-data/meson.build | 2 -
src/libtracker-sparql/bus/meson.build | 1 -
8 files changed, 125 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__
diff --git a/src/libtracker-data/meson.build b/src/libtracker-data/meson.build
index 562c6f735..f13c8afba 100644
--- a/src/libtracker-data/meson.build
+++ b/src/libtracker-data/meson.build
@@ -33,7 +33,6 @@ libtracker_data = static_library('tracker-data',
'tracker-uuid.c',
'tracker-vtab-service.c',
'tracker-vtab-triples.c',
- tracker_common_enum_header,
tracker_data_enums[0],
tracker_data_enums[1],
c_args: tracker_c_args,
@@ -50,5 +49,4 @@ tracker_data_dep = declare_dependency(
link_with: [libtracker_data],
dependencies: tracker_data_dependencies,
include_directories: include_directories('.'),
- sources: enums[1],
)
diff --git a/src/libtracker-sparql/bus/meson.build b/src/libtracker-sparql/bus/meson.build
index 53d93c057..59caf678e 100644
--- a/src/libtracker-sparql/bus/meson.build
+++ b/src/libtracker-sparql/bus/meson.build
@@ -5,7 +5,6 @@ libtracker_bus = static_library('tracker-bus',
'tracker-bus-fd-cursor.vala',
'tracker-bus-statement.vala',
'../../libtracker-common/libtracker-common.vapi',
- tracker_common_enum_header,
c_args: tracker_c_args + [
'-include', 'libtracker-sparql/tracker-private.h',
],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]