Cleanup: Remove unused function

This commit is contained in:
Hans Goudey
2020-09-24 14:39:23 -05:00
parent 9910b5024e
commit 80c57fe35f
2 changed files with 0 additions and 16 deletions

View File

@@ -1685,7 +1685,6 @@ struct Panel *UI_panel_begin(struct ARegion *region,
bool *r_open);
void UI_panel_end(const struct ARegion *region, uiBlock *block, int width, int height, bool open);
void UI_panels_scale(struct ARegion *region, float new_width);
void UI_panel_label_offset(struct uiBlock *block, int *r_x, int *r_y);
int UI_panel_size_y(const struct Panel *panel);
bool UI_panel_is_dragging(const struct Panel *panel);

View File

@@ -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, &region->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;
}
}
}
}
/** \} */
/* -------------------------------------------------------------------- */