[gnome-builder] auto-indent: remove unused vfunc "query".
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] auto-indent: remove unused vfunc "query".
- Date: Thu, 25 Sep 2014 20:25:22 +0000 (UTC)
commit 4bb2f29dfe8972a4d62ccf72934d6920a31212d2
Author: Christian Hergert <christian hergert me>
Date: Thu Sep 25 13:25:17 2014 -0700
auto-indent: remove unused vfunc "query".
We decided to not use the query-auto-indent event and instead just rely
on key-press-event manually.
src/editor/gb-source-auto-indenter.c | 25 -------------------------
src/editor/gb-source-auto-indenter.h | 12 ------------
2 files changed, 0 insertions(+), 37 deletions(-)
---
diff --git a/src/editor/gb-source-auto-indenter.c b/src/editor/gb-source-auto-indenter.c
index e8d63ec..8525a2f 100644
--- a/src/editor/gb-source-auto-indenter.c
+++ b/src/editor/gb-source-auto-indenter.c
@@ -23,30 +23,6 @@
G_DEFINE_ABSTRACT_TYPE (GbSourceAutoIndenter, gb_source_auto_indenter,
G_TYPE_OBJECT)
-static gchar *
-gb_source_auto_indenter_real_query (GbSourceAutoIndenter *indenter,
- GtkTextView *view,
- GtkTextBuffer *buffer,
- GtkTextIter *iter)
-{
- return NULL;
-}
-
-gchar *
-gb_source_auto_indenter_query (GbSourceAutoIndenter *indenter,
- GtkTextView *view,
- GtkTextBuffer *buffer,
- GtkTextIter *iter)
-{
- g_return_val_if_fail (GB_IS_SOURCE_AUTO_INDENTER (indenter), NULL);
- g_return_val_if_fail (GTK_IS_TEXT_VIEW (view), NULL);
- g_return_val_if_fail (GTK_IS_TEXT_BUFFER (buffer), NULL);
- g_return_val_if_fail (iter, NULL);
-
- return GB_SOURCE_AUTO_INDENTER_GET_CLASS (indenter)->query (indenter, view,
- buffer, iter);
-}
-
static gboolean
gb_source_auto_indenter_real_is_trigger (GbSourceAutoIndenter *indenter,
GdkEventKey *event)
@@ -112,7 +88,6 @@ gb_source_auto_indenter_real_format (GbSourceAutoIndenter *indenter,
static void
gb_source_auto_indenter_class_init (GbSourceAutoIndenterClass *klass)
{
- klass->query = gb_source_auto_indenter_real_query;
klass->is_trigger = gb_source_auto_indenter_real_is_trigger;
klass->format = gb_source_auto_indenter_real_format;
}
diff --git a/src/editor/gb-source-auto-indenter.h b/src/editor/gb-source-auto-indenter.h
index d1de838..e0ee06c 100644
--- a/src/editor/gb-source-auto-indenter.h
+++ b/src/editor/gb-source-auto-indenter.h
@@ -48,14 +48,6 @@ struct _GbSourceAutoIndenterClass
{
GObjectClass parent_class;
- /*
- * TODO: Remove "query".
- */
- gchar *(*query) (GbSourceAutoIndenter *indenter,
- GtkTextView *view,
- GtkTextBuffer *buffer,
- GtkTextIter *iter);
-
gchar *(*format) (GbSourceAutoIndenter *indenter,
GtkTextView *view,
GtkTextBuffer *buffer,
@@ -71,10 +63,6 @@ struct _GbSourceAutoIndenterClass
};
GType gb_source_auto_indenter_get_type (void) G_GNUC_CONST;
-gchar *gb_source_auto_indenter_query (GbSourceAutoIndenter *indenter,
- GtkTextView *view,
- GtkTextBuffer *buffer,
- GtkTextIter *iter);
gboolean gb_source_auto_indenter_is_trigger (GbSourceAutoIndenter *indenter,
GdkEventKey *event);
gchar *gb_source_auto_indenter_format (GbSourceAutoIndenter *indenter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]