[atk] atkregistry: remove code not being compiled
- From: Alejandro Piñeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [atk] atkregistry: remove code not being compiled
- Date: Tue, 8 Mar 2016 17:14:15 +0000 (UTC)
commit 68c61158352aa2dd9efd19c4cc9d8e3a7e570a2e
Author: Alejandro Piñeiro <apinheiro igalia com>
Date: Fri Feb 19 17:46:38 2016 +0100
atkregistry: remove code not being compiled
I think that code was there in order to explain why it is not
needed. If that case, it would be better to just move the comment
around.
In general having code around #if 0 is a maintenance burden. That code
has not been compiled for years and nothing happen. It is better to
just remove it.
atk/atkregistry.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/atk/atkregistry.c b/atk/atkregistry.c
index 364d8ba..45fabde 100644
--- a/atk/atkregistry.c
+++ b/atk/atkregistry.c
@@ -84,20 +84,6 @@ atk_registry_class_init (AtkRegistryClass *klass)
object_class->finalize = atk_registry_finalize;
}
-#if 0
-/*
- * Cannot define a class_finalize function when calling
- * g_type_register_static()
- */
-static void
-atk_registry_class_finalize (GObjectClass *klass)
-{
- g_return_if_fail (ATK_IS_REGISTRY_CLASS (klass));
-
- g_object_unref (G_OBJECT (default_registry));
-}
-#endif
-
static void
atk_registry_init (AtkRegistry *instance, AtkRegistryClass *klass)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]