diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-04-26 20:48:54 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-04-26 20:48:54 +0100 |
commit | 87066f9f8dbad2416c53f70497aeb7c940ccb239 (patch) | |
tree | 4dac3a7c9eff12f4ec7d2cfd09882f72d7923e3c /desktop/gui_factory.c | |
parent | 796bb0f652a5557f6903d96c6b7652a1565e6885 (diff) | |
download | netsurf-87066f9f8dbad2416c53f70497aeb7c940ccb239.tar.gz netsurf-87066f9f8dbad2416c53f70497aeb7c940ccb239.tar.bz2 |
simplify the browser window operations by removing scroll API
The browser window scrollingAPI was duplicated in window operation
table, this simplifies it to a single set_scroll API.
Diffstat (limited to 'desktop/gui_factory.c')
-rw-r--r-- | desktop/gui_factory.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/desktop/gui_factory.c b/desktop/gui_factory.c index 559823d61..ca9eff1da 100644 --- a/desktop/gui_factory.c +++ b/desktop/gui_factory.c @@ -82,12 +82,6 @@ static void gui_default_window_set_icon(struct gui_window *g, { } -static void gui_default_window_scroll_visible(struct gui_window *g, - int x0, int y0, - int x1, int y1) -{ - guit->window->set_scroll(g, x0, y0); -} static void gui_default_window_new_content(struct gui_window *g) { @@ -212,9 +206,6 @@ static nserror verify_window_register(struct gui_window_table *gwt) if (gwt->save_link == NULL) { gwt->save_link = gui_default_window_save_link; } - if (gwt->scroll_visible == NULL) { - gwt->scroll_visible = gui_default_window_scroll_visible; - } if (gwt->new_content == NULL) { gwt->new_content = gui_default_window_new_content; } |