summaryrefslogtreecommitdiff
path: root/frontends/riscos
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-04 15:01:30 +0100
committerVincent Sanders <vince@kyllikki.org>2019-08-04 15:01:30 +0100
commit98f8eaeb31ec77f37fdc30d4a28e889c663c7d3b (patch)
treec4174635f22d87b236f5c237cfe79961c9eb37af /frontends/riscos
parent3be2b98cc2d5c4e7c97a6caba86d1869893f25eb (diff)
downloadnetsurf-98f8eaeb31ec77f37fdc30d4a28e889c663c7d3b.tar.gz
netsurf-98f8eaeb31ec77f37fdc30d4a28e889c663c7d3b.tar.bz2
remove unused interface
Diffstat (limited to 'frontends/riscos')
-rw-r--r--frontends/riscos/window.c25
-rw-r--r--frontends/riscos/window.h11
2 files changed, 0 insertions, 36 deletions
diff --git a/frontends/riscos/window.c b/frontends/riscos/window.c
index ab46f284f..beadf4c41 100644
--- a/frontends/riscos/window.c
+++ b/frontends/riscos/window.c
@@ -4766,31 +4766,6 @@ ro_gui_window_to_window_pos(struct gui_window *g, int x, int y, os_coord *pos)
/* exported interface documented in riscos/window.h */
-bool ro_gui_window_to_screen_pos(struct gui_window *g,
- int x,
- int y,
- os_coord *pos)
-{
- wimp_window_state state;
- os_error *error;
-
- assert(g);
-
- state.w = g->window;
- error = xwimp_get_window_state(&state);
- if (error) {
- NSLOG(netsurf, INFO, "xwimp_get_window_state: 0x%x:%s",
- error->errnum, error->errmess);
- ro_warn_user("WimpError", error->errmess);
- return false;
- }
- pos->x = (x * 2 * g->scale) + (state.visible.x0 - state.xscroll);
- pos->y = (state.visible.y1 - state.yscroll) - (y * 2 * g->scale);
- return true;
-}
-
-
-/* exported interface documented in riscos/window.h */
enum browser_mouse_state
ro_gui_mouse_click_state(wimp_mouse_state buttons, wimp_icon_flags type)
{
diff --git a/frontends/riscos/window.h b/frontends/riscos/window.h
index 0a5bd43c2..c3325a7a4 100644
--- a/frontends/riscos/window.h
+++ b/frontends/riscos/window.h
@@ -192,17 +192,6 @@ bool ro_gui_window_to_window_pos(struct gui_window *g, int x, int y, os_coord *p
/**
- * Convert x,y window co-ordinates into screen co-ordinates.
- *
- * \param g gui window
- * \param x x ordinate
- * \param y y ordinate
- * \param pos receives position in screen co-ordinatates
- * \return true iff conversion successful
- */
-bool ro_gui_window_to_screen_pos(struct gui_window *g, int x, int y, os_coord *pos);
-
-/**
* Returns the state of the mouse buttons and modifiers keys for a
* mouse action, suitable for passing to the OS-independent
* browser window/ treeview/ etc code.