[gnome-builder/wip/search] search: fix various compiler warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/search] search: fix various compiler warnings
- Date: Sat, 17 Jan 2015 23:23:29 +0000 (UTC)
commit 380ffe94dd2c8c7ee0b3bb6bd4ed4cd934cf1cf8
Author: Christian Hergert <christian hergert me>
Date: Sat Jan 17 15:23:17 2015 -0800
search: fix various compiler warnings
src/search/gb-search-context.c | 42 +------------------------------------
src/search/gb-search-provider.c | 43 ---------------------------------------
2 files changed, 2 insertions(+), 83 deletions(-)
---
diff --git a/src/search/gb-search-context.c b/src/search/gb-search-context.c
index 8281a9c..408fef9 100644
--- a/src/search/gb-search-context.c
+++ b/src/search/gb-search-context.c
@@ -33,20 +33,13 @@ struct _GbSearchContextPrivate
G_DEFINE_TYPE_WITH_PRIVATE (GbSearchContext, gb_search_context, G_TYPE_OBJECT)
enum {
- PROP_0,
- PROP_PROVIDERS,
- LAST_PROP
-};
-
-enum {
COUNT_SET,
RESULT_ADDED,
RESULT_REMOVED,
LAST_SIGNAL
};
-static GParamSpec *gParamSpecs [LAST_PROP];
-static guint gSignals [LAST_SIGNAL];
+static guint gSignals [LAST_SIGNAL];
GbSearchContext *
gb_search_context_new (void)
@@ -154,48 +147,17 @@ gb_search_context_finalize (GObject *object)
g_list_foreach (priv->providers, (GFunc)g_object_unref, NULL);
g_list_free (priv->providers);
+ priv->providers = NULL;
G_OBJECT_CLASS (gb_search_context_parent_class)->finalize (object);
}
static void
-gb_search_context_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec)
-{
- GbSearchContext *self = GB_SEARCH_CONTEXT (object);
-
- switch (prop_id)
- {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- }
-}
-
-static void
-gb_search_context_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
-{
- GbSearchContext *self = GB_SEARCH_CONTEXT (object);
-
- switch (prop_id)
- {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- }
-}
-
-static void
gb_search_context_class_init (GbSearchContextClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->finalize = gb_search_context_finalize;
- object_class->get_property = gb_search_context_get_property;
- object_class->set_property = gb_search_context_set_property;
gSignals [COUNT_SET] =
g_signal_new ("count-set",
diff --git a/src/search/gb-search-provider.c b/src/search/gb-search-provider.c
index 345ddff..ac1f6ec 100644
--- a/src/search/gb-search-provider.c
+++ b/src/search/gb-search-provider.c
@@ -82,51 +82,8 @@ gb_search_provider_populate (GbSearchProvider *provider,
}
static void
-gb_search_provider_finalize (GObject *object)
-{
- GbSearchProviderPrivate *priv = GB_SEARCH_PROVIDER (object)->priv;
-
- G_OBJECT_CLASS (gb_search_provider_parent_class)->finalize (object);
-}
-
-static void
-gb_search_provider_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec)
-{
- GbSearchProvider *self = GB_SEARCH_PROVIDER (object);
-
- switch (prop_id)
- {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- }
-}
-
-static void
-gb_search_provider_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
-{
- GbSearchProvider *self = GB_SEARCH_PROVIDER (object);
-
- switch (prop_id)
- {
- default:
- G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
- }
-}
-
-static void
gb_search_provider_class_init (GbSearchProviderClass *klass)
{
- GObjectClass *object_class = G_OBJECT_CLASS (klass);
-
- object_class->finalize = gb_search_provider_finalize;
- object_class->get_property = gb_search_provider_get_property;
- object_class->set_property = gb_search_provider_set_property;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]