Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-09-24 22:39:23 +0300
committerHans Goudey <h.goudey@me.com>2020-09-24 22:39:23 +0300
commit80c57fe35f188c3fbeb2f038888ebca6bf237883 (patch)
tree95a011758d0abe44f301bb5fb4fcee92e3f57bc0 /source/blender
parent9910b5024ead36109d85c6d0424a804d42e115e7 (diff)
Cleanup: Remove unused function
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/include/UI_interface.h1
-rw-r--r--source/blender/editors/interface/interface_panel.c15
2 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index c5acb2c1d25..376dcb6d811 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -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);
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, &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;
- }
- }
- }
-}
-
/** \} */
/* -------------------------------------------------------------------- */