diff options
author | Hans Goudey <h.goudey@me.com> | 2020-09-24 22:39:23 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-09-24 22:39:23 +0300 |
commit | 80c57fe35f188c3fbeb2f038888ebca6bf237883 (patch) | |
tree | 95a011758d0abe44f301bb5fb4fcee92e3f57bc0 /source/blender/editors/interface/interface_panel.c | |
parent | 9910b5024ead36109d85c6d0424a804d42e115e7 (diff) |
Cleanup: Remove unused function
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 15 |
1 files changed, 0 insertions, 15 deletions
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; - } - } - } -} - /** \} */ /* -------------------------------------------------------------------- */ |