From 4d79b56c6f901bae58384e0b612c408506c40741 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sun, 24 Oct 2010 22:12:25 +0000
Subject: Removed dead code.

git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@185 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
---
 ChangeLog                 |  5 +++++
 src/gtkext/gtkblockview.c | 21 ---------------------
 2 files changed, 5 insertions(+), 21 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6862b05..089e98d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+10-10-25  Cyrille Bagard <nocbos@gmail.com>
+
+	* src/gtkext/gtkblockview.c:
+	Remove dead code.
+
 10-10-24  Cyrille Bagard <nocbos@gmail.com>
 
 	* src/editor.c:
diff --git a/src/gtkext/gtkblockview.c b/src/gtkext/gtkblockview.c
index 66177b8..acce2d6 100644
--- a/src/gtkext/gtkblockview.c
+++ b/src/gtkext/gtkblockview.c
@@ -66,8 +66,6 @@ typedef struct _GDelayedInsertion
 
     GtkBlockView *view;                     /* Visualisation à constituer  */
 
-    size_t lengths[SAR_COUNT];              /* Différentes tailles de zone */
-
 } GDelayedInsertion;
 
 /* Ensembles binaires à désassembler (classe) */
@@ -305,7 +303,6 @@ static void g_delayed_insertion_process(GDelayedInsertion *insertion, GtkExtStat
     GRenderingLine *iter;                   /* Boucle de parcours          */
     GtkTextIter pos;                        /* Point d'insertion           */
     GBufferLine *line;                      /* Ligne de destination        */
-    //GtkTextMark *mark;                      /* Marquage de ligne associée  */
     vmpa_t done;                            /* Quantité déjà parcourue     */
 
     clock_t _start, _end;
@@ -324,10 +321,6 @@ static void g_delayed_insertion_process(GDelayedInsertion *insertion, GtkExtStat
     iter = g_rendering_line_get_last_iter(lines, last);
     end = get_rendering_line_address(iter) + get_rendering_line_length(iter) - start;
 
-    insertion->lengths[SAR_ADDRESS] = 0;
-    insertion->lengths[SAR_CODE] = 0;
-    insertion->lengths[SAR_INSTRUCTION] = 0;
-
     id = gtk_extended_status_bar_push(statusbar, _("Inserting lines..."), true);
 
     options = g_openida_binary_get_options(GTK_BIN_VIEW(view)->binary);
@@ -349,20 +342,6 @@ static void g_delayed_insertion_process(GDelayedInsertion *insertion, GtkExtStat
         g_object_set_data(G_OBJECT(line), "line", iter);
 
 
-
-#if 0
-        if (iter != lines)
-            gtk_text_buffer_insert_with_tags(view->buffer, &pos, "\n", 1, NULL);
-
-        gtk_text_buffer_get_end_iter(view->buffer, &pos);
-
-        mark = gtk_text_buffer_create_mark(view->buffer, NULL, &pos, TRUE);
-        g_object_set_data(G_OBJECT(mark), "line", iter);
-
-        g_content_exporter_add_to_gtk_buffer(G_CONTENT_EXPORTER(iter), view->rendering,
-                                             view->buffer, &pos, insertion->lengths);
-#endif
-
         /*
         gdk_flush ();
         gdk_threads_leave();
-- 
cgit v0.11.2-87-g4458