remove unused BufferPane::draw_buffer_character()

This commit is contained in:
Josh Holtrop 2017-01-19 21:23:25 -05:00
parent b5cb693317
commit be201ab73d
2 changed files with 0 additions and 17 deletions

View File

@ -377,22 +377,6 @@ int BufferPane::character_width(uint32_t character)
}
}
void BufferPane::draw_buffer_character(int screen_column, int screen_row, uint32_t character)
{
if (character < 0x20u)
{
m_window->gl()->draw_character(win_x(col_x(screen_column)), win_y(row_y(screen_row)),
'^', *m_window->font(), 1.0, 1.0, 1.0, 1.0);
m_window->gl()->draw_character(win_x(col_x(screen_column + 1)), win_y(row_y(screen_row)),
(character - 0x20u + 'A'), *m_window->font(), 1.0, 1.0, 1.0, 1.0);
}
else
{
m_window->gl()->draw_character(win_x(col_x(screen_column)), win_y(row_y(screen_row)),
character, *m_window->font(), 1.0, 1.0, 1.0, 1.0);
}
}
void BufferPane::draw_cursor(int x, int y, int i, int columns)
{
if (m_command_mode && (!m_focused))

View File

@ -45,7 +45,6 @@ protected:
int draw_buffer_line(int screen_row, const Buffer::Iterator & start_of_line);
void draw_character(uint32_t character, int screen_row, int screen_column);
int character_width(uint32_t character);
void draw_buffer_character(int screen_column, int screen_row, uint32_t character);
void draw_cursor(int x, int y, int i, int columns);
int calculate_rows_in_cursor_line(const Buffer::Iterator & start_of_line);
int calculate_rows_in_line_with_iterator_offset(const Buffer::Iterator & start_of_line, const Buffer::Iterator & reference, int * iterator_row_offset);