[vte] Remove _vte_new_row_data



commit 5e2b6753201ae416bdf1c594ab5ca5ab8bbf2130
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu Aug 20 23:06:37 2009 -0400

    Remove _vte_new_row_data

 src/vte-private.h |    1 -
 src/vte.c         |   11 -----------
 src/vteseq.c      |    4 ++--
 3 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/src/vte-private.h b/src/vte-private.h
index bf2e489..2a27cf5 100644
--- a/src/vte-private.h
+++ b/src/vte-private.h
@@ -434,7 +434,6 @@ void _vte_invalidate_cells(VteTerminal *terminal,
 			   glong row_start, gint row_count);
 void _vte_invalidate_cell(VteTerminal *terminal, glong col, glong row);
 void _vte_invalidate_cursor_once(VteTerminal *terminal, gboolean periodic);
-VteRowData * _vte_new_row_data(VteTerminal *terminal);
 VteRowData * _vte_new_row_data_sized(VteTerminal *terminal, gboolean fill);
 void _vte_terminal_adjust_adjustments(VteTerminal *terminal);
 void _vte_terminal_queue_contents_changed(VteTerminal *terminal);
diff --git a/src/vte.c b/src/vte.c
index ac3505d..6a01e52 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -309,17 +309,6 @@ _vte_reset_row_data (VteTerminal *terminal, VteRowData *row, gboolean fill)
 
 /* Allocate a new line. */
 VteRowData *
-_vte_new_row_data(VteTerminal *terminal)
-{
-	VteRowData *row = NULL;
-	row = g_slice_new(VteRowData);
-	row->cells = g_array_new(FALSE, TRUE, sizeof(struct vte_charcell));
-	row->soft_wrapped = 0;
-	return row;
-}
-
-/* Allocate a new line of a given size. */
-VteRowData *
 _vte_new_row_data_sized(VteTerminal *terminal, gboolean fill)
 {
 	VteRowData *row = NULL;
diff --git a/src/vteseq.c b/src/vteseq.c
index b22694a..a8b88a4 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -1144,7 +1144,7 @@ vte_sequence_handler_cd (VteTerminal *terminal, GValueArray *params)
 			rowdata = _vte_ring_index(screen->row_data, i);
 			g_assert(rowdata != NULL);
 		} else {
-			rowdata = _vte_new_row_data(terminal);
+			rowdata = _vte_new_row_data_sized(terminal, FALSE);
 			_vte_ring_append(screen->row_data, rowdata);
 		}
 		/* Pad out the row. */
@@ -3086,7 +3086,7 @@ vte_sequence_handler_screen_alignment_test (VteTerminal *terminal, GValueArray *
 	     row++) {
 		/* Find this row. */
 		while (_vte_ring_next(screen->row_data) <= row) {
-			rowdata = _vte_new_row_data(terminal);
+			rowdata = _vte_new_row_data_sized(terminal, FALSE);
 			_vte_ring_append(screen->row_data, rowdata);
 		}
 		_vte_terminal_adjust_adjustments(terminal);



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