From 80c57fe35f188c3fbeb2f038888ebca6bf237883 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Thu, 24 Sep 2020 14:39:23 -0500 Subject: Cleanup: Remove unused function --- source/blender/editors/interface/interface_panel.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'source/blender/editors/interface/interface_panel.c') diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 2917758c995..1178f06b551 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1966,21 +1966,6 @@ void UI_panels_draw(const bContext *C, ARegion *region) } } -void UI_panels_scale(ARegion *region, float new_width) -{ - LISTBASE_FOREACH (uiBlock *, block, ®ion->uiblocks) { - if (block->panel) { - const float fac = new_width / (float)block->panel->sizex; - block->panel->sizex = new_width; - - LISTBASE_FOREACH (uiBut *, but, &block->buttons) { - but->rect.xmin *= fac; - but->rect.xmax *= fac; - } - } - } -} - /** \} */ /* -------------------------------------------------------------------- */ -- cgit v1.2.3