diff options
author | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2015-12-11 08:09:30 +0100 |
commit | 84908853d4d30b7709f0e70efb59f8c2d094dc1d (patch) | |
tree | 3acad7cd7f9bd5e37b9d69e16b15643f541be541 /src/main-gcu.c | |
parent | 23b62c1da2cf541d3037aa7acc2727b09c47fcc8 (diff) |
Remove term::wipe_hook
After all it's only an optimization and systems these
days should be fast enough to ignore it.
Diffstat (limited to 'src/main-gcu.c')
-rw-r--r-- | src/main-gcu.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/main-gcu.c b/src/main-gcu.c index b129770d..c253daf2 100644 --- a/src/main-gcu.c +++ b/src/main-gcu.c @@ -702,34 +702,6 @@ static errr Term_curs_gcu(int x, int y) /* - * Erase a grid of space - * Hack -- try to be "semi-efficient". - */ -static errr Term_wipe_gcu(int x, int y, int n) -{ - term_data *td = (term_data *)(Term->data); - - /* Place cursor */ - wmove(td->win, y, x); - - /* Clear to end of line */ - if (x + n >= td->t.wid) - { - wclrtoeol(td->win); - } - - /* Clear some characters */ - else - { - while (n-- > 0) waddch(td->win, ' '); - } - - /* Success */ - return (0); -} - - -/* * Place some text on the screen using an attribute */ static errr Term_text_gcu(int x, int y, int n, byte a, cptr s) @@ -790,7 +762,6 @@ static errr term_data_init_gcu(term_data *td, int rows, int cols, int y, int x) /* Set some more hooks */ t->text_hook = Term_text_gcu; - t->wipe_hook = Term_wipe_gcu; t->curs_hook = Term_curs_gcu; t->xtra_hook = Term_xtra_gcu; |