summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-10-24 22:12:25 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-10-24 22:12:25 (GMT)
commit4d79b56c6f901bae58384e0b612c408506c40741 (patch)
treeee4380f758e8141ac089d66512370def7f7a2506 /src
parent6ab5a66388182e6cb9a49b8d6e54a9348de4f264 (diff)
Removed dead code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@185 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src')
-rw-r--r--src/gtkext/gtkblockview.c21
1 files changed, 0 insertions, 21 deletions
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();