Cleanup: Remove unused hotkey button definition function
This isn't used, and I also see any use for it short-term.
This commit is contained in:
@@ -1549,21 +1549,6 @@ uiBut *uiDefKeyevtButS(uiBlock *block,
|
|||||||
short *spoin,
|
short *spoin,
|
||||||
const char *tip);
|
const char *tip);
|
||||||
|
|
||||||
/**
|
|
||||||
* Short pointers hard-coded.
|
|
||||||
* \param modkeypoin: will be set to #KM_SHIFT, #KM_ALT, #KM_CTRL, #KM_OSKEY bits.
|
|
||||||
*/
|
|
||||||
uiBut *uiDefHotKeyevtButS(uiBlock *block,
|
|
||||||
int retval,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
short *keypoin,
|
|
||||||
const short *modkeypoin,
|
|
||||||
const char *tip);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \param arg: A pointer to string/name, use #UI_but_func_search_set() below to make this work.
|
* \param arg: A pointer to string/name, use #UI_but_func_search_set() below to make this work.
|
||||||
* here `a1` and `a2`, if set, control thumbnail preview rows/cols.
|
* here `a1` and `a2`, if set, control thumbnail preview rows/cols.
|
||||||
|
|||||||
@@ -6291,36 +6291,6 @@ uiBut *uiDefKeyevtButS(uiBlock *block,
|
|||||||
return but;
|
return but;
|
||||||
}
|
}
|
||||||
|
|
||||||
uiBut *uiDefHotKeyevtButS(uiBlock *block,
|
|
||||||
int retval,
|
|
||||||
const char *str,
|
|
||||||
int x,
|
|
||||||
int y,
|
|
||||||
short width,
|
|
||||||
short height,
|
|
||||||
short *keypoin,
|
|
||||||
const short *modkeypoin,
|
|
||||||
const char *tip)
|
|
||||||
{
|
|
||||||
uiBut *but = ui_def_but(block,
|
|
||||||
UI_BTYPE_HOTKEY_EVENT | UI_BUT_POIN_SHORT,
|
|
||||||
retval,
|
|
||||||
str,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
width,
|
|
||||||
height,
|
|
||||||
keypoin,
|
|
||||||
0.0,
|
|
||||||
0.0,
|
|
||||||
0.0,
|
|
||||||
0.0,
|
|
||||||
tip);
|
|
||||||
but->modifier_key = *modkeypoin;
|
|
||||||
ui_but_update(but);
|
|
||||||
return but;
|
|
||||||
}
|
|
||||||
|
|
||||||
uiBut *uiDefSearchBut(uiBlock *block,
|
uiBut *uiDefSearchBut(uiBlock *block,
|
||||||
void *arg,
|
void *arg,
|
||||||
int retval,
|
int retval,
|
||||||
|
|||||||
Reference in New Issue
Block a user