summaryrefslogtreecommitdiff
path: root/riscos/toolbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/toolbar.c')
-rw-r--r--riscos/toolbar.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/riscos/toolbar.c b/riscos/toolbar.c
index 5bbde8a38..bd76e23de 100644
--- a/riscos/toolbar.c
+++ b/riscos/toolbar.c
@@ -593,8 +593,6 @@ bool ro_toolbar_process(struct toolbar *toolbar, int width, bool reformat)
wimp_window_state state;
os_box extent;
int old_height, old_width;
- int xeig, yeig;
- os_coord pixel = {1, 1};
if (!toolbar)
return false;
@@ -602,12 +600,6 @@ bool ro_toolbar_process(struct toolbar *toolbar, int width, bool reformat)
old_height = toolbar->current_height;
old_width = toolbar->current_width;
- /* calculate 1px in OS units */
-
- ro_convert_pixels_to_os_units(&pixel, (os_mode)-1);
- xeig = pixel.x;
- yeig = pixel.y;
-
/* Measure the parent window width if the caller has asked us to
* calculate the clip width ourselves. Otherwise, if a clip width
* has been specified, set the clip to that.