From c0db8a9a3beed8cae7f4f138f46a9efcaff7b054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 24 Dec 2021 10:39:36 +0100 Subject: 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. --- source/blender/editors/interface/interface.c | 38 ---------------------------- 1 file changed, 38 deletions(-) (limited to 'source/blender/editors/interface') 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, -- cgit v1.2.3