Core local history: Remove unused redraw API.

This commit is contained in:
Michael Drake 2017-06-10 10:40:43 +01:00
parent 9bf5ecfa87
commit 5225ca2b90
2 changed files with 0 additions and 39 deletions

View File

@ -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,

View File

@ -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.
*