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:
authorSybren A. Stüvel <sybren@blender.org>2021-12-24 12:39:36 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-12-24 12:39:36 +0300
commitc0db8a9a3beed8cae7f4f138f46a9efcaff7b054 (patch)
tree826454301e6ec94d83e1ceb5d4323c849783f88f /source/blender/editors/interface
parent81b3933abbbff4844253c04eeaf1ede672dcb566 (diff)
Cleanup: remove unused button function
rB05f900e3466b45a19e13bea6dd641e4f7b8b46e9 removed unused button functions, but since that commit the `uiDefIconTextButBit()` static function sits unused as well. It's now been removed.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r--source/blender/editors/interface/interface.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 01d7ccdc3ea..a275a59a4e7 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -5516,44 +5516,6 @@ uiBut *uiDefIconTextBut(uiBlock *block,
but->drawflag |= UI_BUT_ICON_LEFT;
return but;
}
-static uiBut *uiDefIconTextButBit(uiBlock *block,
- int type,
- int bit,
- int retval,
- int icon,
- const char *str,
- int x,
- int y,
- short width,
- short height,
- void *poin,
- float min,
- float max,
- float a1,
- float a2,
- const char *tip)
-{
- const int bitIdx = findBitIndex(bit);
- if (bitIdx == -1) {
- return NULL;
- }
- return uiDefIconTextBut(block,
- type | UI_BUT_POIN_BIT | bitIdx,
- retval,
- icon,
- str,
- x,
- y,
- width,
- height,
- poin,
- min,
- max,
- a1,
- a2,
- tip);
-}
-
uiBut *uiDefIconTextButF(uiBlock *block,
int type,
int retval,