[tracker/property-changes] libtracker-data: Removed unneeded properties
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/property-changes] libtracker-data: Removed unneeded properties
- Date: Wed, 31 Mar 2010 12:40:50 +0000 (UTC)
commit 480e54c6ade47d463e141a22c42066686dc1d344
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Mar 31 14:39:54 2010 +0200
libtracker-data: Removed unneeded properties
src/libtracker-data/tracker-class.c | 26 --------------------------
src/libtracker-data/tracker-class.h | 3 ---
src/libtracker-data/tracker-data-manager.c | 8 --------
src/libtracker-data/tracker-property.c | 26 --------------------------
src/libtracker-data/tracker-property.h | 3 ---
5 files changed, 0 insertions(+), 66 deletions(-)
---
diff --git a/src/libtracker-data/tracker-class.c b/src/libtracker-data/tracker-class.c
index 4deee5b..b2375e6 100644
--- a/src/libtracker-data/tracker-class.c
+++ b/src/libtracker-data/tracker-class.c
@@ -39,7 +39,6 @@ struct _TrackerClassPriv {
gint count;
gint id;
gboolean is_new;
- gboolean notify;
GArray *super_classes;
};
@@ -166,18 +165,6 @@ tracker_class_get_is_new (TrackerClass *service)
return priv->is_new;
}
-gboolean
-tracker_class_get_notify (TrackerClass *service)
-{
- TrackerClassPriv *priv;
-
- g_return_val_if_fail (TRACKER_IS_CLASS (service), FALSE);
-
- priv = GET_PRIV (service);
-
- return priv->notify;
-}
-
void
tracker_class_set_uri (TrackerClass *service,
const gchar *value)
@@ -273,16 +260,3 @@ tracker_class_set_is_new (TrackerClass *service,
priv->is_new = value;
}
-
-void
-tracker_class_set_notify (TrackerClass *service,
- gboolean value)
-{
- TrackerClassPriv *priv;
-
- g_return_if_fail (TRACKER_IS_CLASS (service));
-
- priv = GET_PRIV (service);
-
- priv->notify = value;
-}
diff --git a/src/libtracker-data/tracker-class.h b/src/libtracker-data/tracker-class.h
index 571b87d..c6c0acd 100644
--- a/src/libtracker-data/tracker-class.h
+++ b/src/libtracker-data/tracker-class.h
@@ -54,7 +54,6 @@ const gchar * tracker_class_get_name (TrackerClass *service);
gint tracker_class_get_count (TrackerClass *service);
gint tracker_class_get_id (TrackerClass *service);
gboolean tracker_class_get_is_new (TrackerClass *service);
-gboolean tracker_class_get_notify (TrackerClass *service);
TrackerClass **tracker_class_get_super_classes (TrackerClass *service);
void tracker_class_set_uri (TrackerClass *service,
@@ -67,8 +66,6 @@ void tracker_class_set_id (TrackerClass *service,
gint id);
void tracker_class_set_is_new (TrackerClass *service,
gboolean value);
-void tracker_class_set_notify (TrackerClass *service,
- gboolean value);
G_END_DECLS
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 10d4343..a48833f 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -261,10 +261,6 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
if (tracker_class_get_is_new (class) != in_update) {
update_property_value ("tracker:notify", subject, predicate, object);
}
-
- if (strcmp (object, "true") == 0) {
- tracker_class_set_notify (class, TRUE);
- }
} else if (g_strcmp0 (predicate, TRACKER_PREFIX "writeback") == 0) {
TrackerProperty *property;
@@ -277,10 +273,6 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
if (tracker_property_get_is_new (property) != in_update) {
update_property_value ("tracker:writeback", subject, predicate, object);
}
-
- if (strcmp (object, "true") == 0) {
- tracker_property_set_writeback (property, TRUE);
- }
} else if (g_strcmp0 (predicate, RDFS_SUB_PROPERTY_OF) == 0) {
TrackerProperty *property, *super_property;
diff --git a/src/libtracker-data/tracker-property.c b/src/libtracker-data/tracker-property.c
index 4894075..b59d1e6 100644
--- a/src/libtracker-data/tracker-property.c
+++ b/src/libtracker-data/tracker-property.c
@@ -59,7 +59,6 @@ struct _TrackerPropertyPriv {
gboolean transient;
gboolean is_inverse_functional_property;
gboolean is_new;
- gboolean writeback;
GArray *super_properties;
};
@@ -342,18 +341,6 @@ tracker_property_get_is_new (TrackerProperty *field)
}
gboolean
-tracker_property_get_writeback (TrackerProperty *field)
-{
- TrackerPropertyPriv *priv;
-
- g_return_val_if_fail (TRACKER_IS_PROPERTY (field), FALSE);
-
- priv = GET_PRIV (field);
-
- return priv->writeback;
-}
-
-gboolean
tracker_property_get_embedded (TrackerProperty *field)
{
TrackerPropertyPriv *priv;
@@ -564,19 +551,6 @@ tracker_property_set_is_new (TrackerProperty *field,
}
void
-tracker_property_set_writeback (TrackerProperty *field,
- gboolean value)
-{
- TrackerPropertyPriv *priv;
-
- g_return_if_fail (TRACKER_IS_PROPERTY (field));
-
- priv = GET_PRIV (field);
-
- priv->writeback = value;
-}
-
-void
tracker_property_set_fulltext_indexed (TrackerProperty *field,
gboolean value)
{
diff --git a/src/libtracker-data/tracker-property.h b/src/libtracker-data/tracker-property.h
index 7b78521..ab4e532 100644
--- a/src/libtracker-data/tracker-property.h
+++ b/src/libtracker-data/tracker-property.h
@@ -87,7 +87,6 @@ gboolean tracker_property_get_embedded (TrackerProperty
gboolean tracker_property_get_multiple_values (TrackerProperty *property);
gboolean tracker_property_get_transient (TrackerProperty *property);
gboolean tracker_property_get_is_new (TrackerProperty *property);
-gboolean tracker_property_get_writeback (TrackerProperty *property);
gboolean tracker_property_get_is_inverse_functional_property
(TrackerProperty *property);
TrackerProperty ** tracker_property_get_super_properties (TrackerProperty *property);
@@ -115,8 +114,6 @@ void tracker_property_set_transient (TrackerProperty
gboolean value);
void tracker_property_set_is_new (TrackerProperty *property,
gboolean value);
-void tracker_property_set_writeback (TrackerProperty *property,
- gboolean value);
void tracker_property_set_is_inverse_functional_property
(TrackerProperty *property,
gboolean value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]