[gnome-builder/wip/extensions] language: drop ::get_refactory()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/extensions] language: drop ::get_refactory()
- Date: Sun, 28 Jun 2015 20:55:06 +0000 (UTC)
commit d255194282c432da6fba23420e4e105a087f79ca
Author: Christian Hergert <christian hergert me>
Date: Sun Jun 28 13:54:50 2015 -0700
language: drop ::get_refactory()
We aren't even using this yet, so drop it until we do.
libide/c/ide-c-language.c | 14 --------------
libide/ide-language.c | 33 ---------------------------------
libide/ide-language.h | 2 --
3 files changed, 0 insertions(+), 49 deletions(-)
---
diff --git a/libide/c/ide-c-language.c b/libide/c/ide-c-language.c
index 8657946..a9db7f3 100644
--- a/libide/c/ide-c-language.c
+++ b/libide/c/ide-c-language.c
@@ -30,7 +30,6 @@ typedef struct
{
IdeDiagnostician *diagnostician;
IdeIndenter *indenter;
- IdeRefactory *refactory;
} IdeCLanguagePrivate;
static void _g_initable_iface_init (GInitableIface *iface);
@@ -67,17 +66,6 @@ ide_c_language_get_indenter (IdeLanguage *language)
return priv->indenter;
}
-static IdeRefactory *
-ide_c_language_get_refactory (IdeLanguage *language)
-{
- IdeCLanguage *self = (IdeCLanguage *)language;
- IdeCLanguagePrivate *priv = ide_c_language_get_instance_private (self);
-
- g_return_val_if_fail (IDE_IS_C_LANGUAGE (self), NULL);
-
- return priv->refactory;
-}
-
static const gchar *
ide_c_language_get_name (IdeLanguage *self)
{
@@ -92,7 +80,6 @@ ide_c_language_dispose (GObject *object)
g_clear_object (&priv->diagnostician);
g_clear_object (&priv->indenter);
- g_clear_object (&priv->refactory);
G_OBJECT_CLASS (ide_c_language_parent_class)->dispose (object);
}
@@ -105,7 +92,6 @@ ide_c_language_class_init (IdeCLanguageClass *klass)
language_class->get_completion_providers = ide_c_language_get_completion_providers;
language_class->get_indenter = ide_c_language_get_indenter;
- language_class->get_refactory = ide_c_language_get_refactory;
language_class->get_name = ide_c_language_get_name;
object_class->dispose = ide_c_language_dispose;
diff --git a/libide/ide-language.c b/libide/ide-language.c
index 48c5cb8..b5e3d79 100644
--- a/libide/ide-language.c
+++ b/libide/ide-language.c
@@ -23,7 +23,6 @@
#include "ide-indenter.h"
#include "ide-internal.h"
#include "ide-language.h"
-#include "ide-refactory.h"
typedef struct
{
@@ -37,7 +36,6 @@ enum {
PROP_INDENTER,
PROP_ID,
PROP_NAME,
- PROP_REFACTORY,
LAST_PROP
};
@@ -139,26 +137,6 @@ ide_language_get_indenter (IdeLanguage *self)
}
/**
- * ide_language_get_refactory:
- *
- * Fetches the refactory for @language.
- *
- * If @language does not provide an #IdeRefactory, then %NULL is returned.
- *
- * Returns: (transfer none) (nullable): An #IdeRefactory or %NULL.
- */
-IdeRefactory *
-ide_language_get_refactory (IdeLanguage *self)
-{
- g_return_val_if_fail (IDE_IS_LANGUAGE (self), NULL);
-
- if (IDE_LANGUAGE_GET_CLASS (self)->get_refactory)
- return IDE_LANGUAGE_GET_CLASS (self)->get_refactory (self);
-
- return NULL;
-}
-
-/**
* ide_language_get_id:
*
* Fetches the unique identifier for the language.
@@ -227,10 +205,6 @@ ide_language_get_property (GObject *object,
g_value_set_string (value, ide_language_get_name (self));
break;
- case PROP_REFACTORY:
- g_value_set_object (value, ide_language_get_refactory (self));
- break;
-
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
@@ -288,13 +262,6 @@ ide_language_class_init (IdeLanguageClass *klass)
NULL,
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
- gParamSpecs [PROP_REFACTORY] =
- g_param_spec_object ("refactory",
- _("Refactory"),
- _("The refactory engine for the language."),
- IDE_TYPE_REFACTORY,
- (G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
-
g_object_class_install_properties (object_class, LAST_PROP, gParamSpecs);
}
diff --git a/libide/ide-language.h b/libide/ide-language.h
index c7a537e..f0d88f0 100644
--- a/libide/ide-language.h
+++ b/libide/ide-language.h
@@ -36,7 +36,6 @@ struct _IdeLanguageClass
IdeIndenter *(*get_indenter) (IdeLanguage *self);
const gchar *(*get_name) (IdeLanguage *self);
- IdeRefactory *(*get_refactory) (IdeLanguage *self);
GtkSourceLanguage *(*get_source_language) (IdeLanguage *self);
GList *(*get_completion_providers) (IdeLanguage *self);
};
@@ -44,7 +43,6 @@ struct _IdeLanguageClass
const gchar *ide_language_get_id (IdeLanguage *self);
IdeIndenter *ide_language_get_indenter (IdeLanguage *self);
const gchar *ide_language_get_name (IdeLanguage *self);
-IdeRefactory *ide_language_get_refactory (IdeLanguage *self);
GtkSourceLanguage *ide_language_get_source_language (IdeLanguage *self);
GList *ide_language_get_completion_providers (IdeLanguage *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]