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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user