From a320abc71e31addf7736197be759ffba3df03179 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 19 Mar 2014 20:32:46 +0100 Subject: [PATCH] Remove unnecessary gswe_*_ref() calls This is to revert part of 41a80ca365c29a435c8d8237e0e8d83128b0809e, which was kind of an overhead. --- src/swe-glib.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/swe-glib.c b/src/swe-glib.c index 52ad799..9a6cd70 100644 --- a/src/swe-glib.c +++ b/src/swe-glib.c @@ -53,7 +53,6 @@ static gboolean gswe_initializing = FALSE; (v)->name = g_strdup(n); \ (v)->points = (h); \ g_hash_table_replace((ht), GINT_TO_POINTER(i), (v)); \ - gswe_planet_info_ref((v)); #define ADD_SIGN(ht, v, s, n, e, q) \ (v) = gswe_sign_info_new(); \ @@ -62,7 +61,6 @@ static gboolean gswe_initializing = FALSE; (v)->element = (e); \ (v)->quality = (q); \ g_hash_table_replace((ht), GINT_TO_POINTER(s), (v)); \ - gswe_sign_info_ref((v)); #define ADD_HOUSE_SYSTEM(ht, v, i, s, n) \ (v) = gswe_house_system_info_new(); \ @@ -70,7 +68,6 @@ static gboolean gswe_initializing = FALSE; (v)->sweph_id = s; \ (v)->name = g_strdup(n); \ g_hash_table_replace((ht), GINT_TO_POINTER(i), (v)); \ - gswe_house_system_info_ref((v)); #define ADD_ASPECT(ht, v, i, n, s, o, h, m) \ (v) = gswe_aspect_info_new(); \ @@ -81,7 +78,6 @@ static gboolean gswe_initializing = FALSE; (v)->harmonic = (h); \ (v)->major = (m); \ g_hash_table_replace((ht), GINT_TO_POINTER(i), (v)); \ - gswe_aspect_info_ref((v)); #define ADD_ANTISCION(ht, v, hts, vs, i, n, s, m) \ (v) = gswe_antiscion_axis_info_new(); \ @@ -91,7 +87,6 @@ static gboolean gswe_initializing = FALSE; (v)->name = g_strdup(n); \ (v)->sign_offset = m; \ g_hash_table_replace((ht), GINT_TO_POINTER(i), (v)); \ - gswe_antiscion_axis_info_ref((v)); /** * gswe_error_quark: