From 5225ca2b90f66b202c520773b0c8c52b0687e6a5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 10 Jun 2017 10:40:43 +0100 Subject: [PATCH] Core local history: Remove unused redraw API. --- desktop/browser_history.c | 30 ------------------------------ desktop/browser_history.h | 9 --------- 2 files changed, 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 @@ -780,36 +780,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, 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 @@ -126,15 +126,6 @@ bool browser_window_history_forward_available(struct browser_window *bw); 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. *