[gtksourceview] Delete unused highlight_requests



commit de7f195e2600848b4e4e254c3056f05d44212a06
Author: Jose Aliste <jose aliste gmail com>
Date:   Tue Jun 15 17:35:04 2010 -0400

    Delete unused highlight_requests

 gtksourceview/gtksourcecontextengine.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/gtksourceview/gtksourcecontextengine.c b/gtksourceview/gtksourcecontextengine.c
index 3c0a9cb..bea6dab 100644
--- a/gtksourceview/gtksourcecontextengine.c
+++ b/gtksourceview/gtksourcecontextengine.c
@@ -459,8 +459,6 @@ struct _GtkSourceContextEnginePrivate
 	guint			 first_update;
 	guint			 incremental_update;
 
-	/* Views highlight requests. */
-	GtkTextRegion		*highlight_requests;
 
 #ifdef ENABLE_MEMORY_DEBUG
 	guint			 mem_usage_timeout;
@@ -2316,16 +2314,11 @@ gtk_source_context_engine_update_highlight (GtkSourceEngine   *engine,
 	}
 	else
 	{
-		if (gtk_text_iter_get_line (start) >= invalid_line)
-		{
-			gtk_text_region_add (ce->priv->highlight_requests, start, end);
-		}
-		else
+		if (gtk_text_iter_get_line (start) < invalid_line)
 		{
 			GtkTextIter valid_end = *start;
 			gtk_text_iter_set_line (&valid_end, invalid_line);
 			ensure_highlighted (ce, start, &valid_end);
-			gtk_text_region_add (ce->priv->highlight_requests, &valid_end, end);
 		}
 
 		install_first_update (ce);
@@ -2618,10 +2611,7 @@ gtk_source_context_engine_attach_buffer (GtkSourceEngine *engine,
 
 		if (ce->priv->refresh_region != NULL)
 			gtk_text_region_destroy (ce->priv->refresh_region, FALSE);
-		if (ce->priv->highlight_requests != NULL)
-			gtk_text_region_destroy (ce->priv->highlight_requests, FALSE);
 		ce->priv->refresh_region = NULL;
-		ce->priv->highlight_requests = NULL;
 	}
 
 	ce->priv->buffer = buffer;
@@ -2666,7 +2656,6 @@ gtk_source_context_engine_attach_buffer (GtkSourceEngine *engine,
 
 		g_object_get (ce->priv->buffer, "highlight-syntax", &ce->priv->highlight, NULL);
 		ce->priv->refresh_region = gtk_text_region_new (buffer);
-		ce->priv->highlight_requests = gtk_text_region_new (buffer);
 
 		g_signal_connect_swapped (buffer,
 					  "notify::highlight-syntax",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]