diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-04-12 19:24:05 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-04-12 19:24:05 +0000 |
commit | 199f3bd7c205769256037f021162801c93faee9f (patch) | |
tree | 65e3a68e0454e3b24a21cab0932c8181d2e13aa8 | |
parent | 1dc8320f2cb4ad37f98360a1497c825c4628bb9e (diff) | |
download | rockbox-199f3bd7c205769256037f021162801c93faee9f.tar.gz rockbox-199f3bd7c205769256037f021162801c93faee9f.zip |
Text viewer: Remove unused max_line_len variable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25610 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/plugins/viewer.c | 4 |
1 files changed, 0 insertions, 4 deletions
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; | |||
614 | static long file_pos; /* Position of the top of the buffer in the file */ | 614 | static long file_pos; /* Position of the top of the buffer in the file */ |
615 | static long last_file_pos; | 615 | static long last_file_pos; |
616 | static unsigned char *buffer_end; /*Set to BUFFER_END() when file_pos changes*/ | 616 | static unsigned char *buffer_end; /*Set to BUFFER_END() when file_pos changes*/ |
617 | static int max_line_len; | ||
618 | static int max_width; | 617 | static int max_width; |
619 | static int max_columns; | 618 | static int max_columns; |
620 | static int cline = 1; | 619 | static int cline = 1; |
@@ -1352,7 +1351,6 @@ static void viewer_draw(int col) | |||
1352 | #endif | 1351 | #endif |
1353 | rb->lcd_clear_display(); | 1352 | rb->lcd_clear_display(); |
1354 | } | 1353 | } |
1355 | max_line_len = 0; | ||
1356 | line_begin = line_end = screen_top_ptr; | 1354 | line_begin = line_end = screen_top_ptr; |
1357 | 1355 | ||
1358 | for (i = 0; i < display_lines; i++) { | 1356 | for (i = 0; i < display_lines; i++) { |
@@ -1585,8 +1583,6 @@ static void viewer_draw(int col) | |||
1585 | rb->lcd_puts(left_col+1, i, utf8_buffer); | 1583 | rb->lcd_puts(left_col+1, i, utf8_buffer); |
1586 | #endif | 1584 | #endif |
1587 | } | 1585 | } |
1588 | if (line_width > max_line_len) | ||
1589 | max_line_len = line_width; | ||
1590 | 1586 | ||
1591 | if (i == 0) | 1587 | if (i == 0) |
1592 | next_line_ptr = line_end; | 1588 | next_line_ptr = line_end; |