mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Core local history: Remove unused redraw API.
This commit is contained in:
parent
9bf5ecfa87
commit
5225ca2b90
@ -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,
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user