From 199f3bd7c205769256037f021162801c93faee9f Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Mon, 12 Apr 2010 19:24:05 +0000 Subject: Text viewer: Remove unused max_line_len variable git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25610 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/viewer.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'apps/plugins/viewer.c') diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index a6f1bf1b5d..618da50807 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -614,7 +614,6 @@ static bool mac_text; static long file_pos; /* Position of the top of the buffer in the file */ static long last_file_pos; static unsigned char *buffer_end; /*Set to BUFFER_END() when file_pos changes*/ -static int max_line_len; static int max_width; static int max_columns; static int cline = 1; @@ -1352,7 +1351,6 @@ static void viewer_draw(int col) #endif rb->lcd_clear_display(); } - max_line_len = 0; line_begin = line_end = screen_top_ptr; for (i = 0; i < display_lines; i++) { @@ -1585,8 +1583,6 @@ static void viewer_draw(int col) rb->lcd_puts(left_col+1, i, utf8_buffer); #endif } - if (line_width > max_line_len) - max_line_len = line_width; if (i == 0) next_line_ptr = line_end; -- cgit v1.2.3