diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-10 10:40:43 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2017-06-10 10:40:43 +0100 |
commit | 5225ca2b90f66b202c520773b0c8c52b0687e6a5 (patch) | |
tree | 6e9228e2a7b3108ed82794c367ee67ce3a140bda | |
parent | 9bf5ecfa87d022645e986249270c5a89e27f46fe (diff) | |
download | netsurf-5225ca2b90f66b202c520773b0c8c52b0687e6a5.tar.gz netsurf-5225ca2b90f66b202c520773b0c8c52b0687e6a5.tar.bz2 |
Core local history: Remove unused redraw API.
-rw-r--r-- | desktop/browser_history.c | 30 | ||||
-rw-r--r-- | desktop/browser_history.h | 9 |
2 files changed, 0 insertions, 39 deletions
diff --git a/desktop/browser_history.c b/desktop/browser_history.c index 606a8c62c..97f4f71ee 100644 --- a/desktop/browser_history.c +++ b/desktop/browser_history.c @@ -781,36 +781,6 @@ void browser_window_history_size(struct browser_window *bw, /* exported interface documented in desktop/browser_history.h */ -bool browser_window_history_redraw(struct browser_window *bw, - const struct redraw_context *ctx) -{ - struct history *history; - struct rect rect = { - .x0 = 0, - .y0 = 0, - }; - - assert(bw != NULL); - history = bw->history; - rect.x1 = history->width; - rect.y1 = history->height; - - if (history == NULL) { - LOG("Attempt to draw NULL history."); - return false; - } - - if (!history->start) - return true; - - ctx->plot->rectangle(ctx, &pstyle_bg, &rect); - - return browser_window_history__redraw_entry(history, history->start, - 0, 0, 0, 0, 0, 0, false, ctx); -} - - -/* exported interface documented in desktop/browser_history.h */ bool browser_window_history_redraw_rectangle(struct browser_window *bw, int x0, int y0, int x1, int y1, int x, int y, const struct redraw_context *ctx) diff --git a/desktop/browser_history.h b/desktop/browser_history.h index 8ffb6125b..831eeeeb4 100644 --- a/desktop/browser_history.h +++ b/desktop/browser_history.h @@ -127,15 +127,6 @@ void browser_window_history_size(struct browser_window *bw, int *width, int *height); /** - * Redraw all of a history area. - * - * \param bw browser window with history object. - * \param ctx current redraw context - */ -bool browser_window_history_redraw(struct browser_window *bw, - const struct redraw_context *ctx); - -/** * Redraw part of a history area. * * \param bw browser window with history object. |