[Bf-blender-cvs] [f2c7b56f0f0] master: Cleanup: Remove unused hotkey button definition function
Julian Eisel
noreply at git.blender.org
Thu May 12 16:56:20 CEST 2022
Commit: f2c7b56f0f0eb9998e47b2725082937416f43d85
Author: Julian Eisel
Date: Thu May 12 16:49:07 2022 +0200
Branches: master
https://developer.blender.org/rBf2c7b56f0f0eb9998e47b2725082937416f43d85
Cleanup: Remove unused hotkey button definition function
This isn't used, and I also see any use for it short-term.
===================================================================
M source/blender/editors/include/UI_interface.h
M source/blender/editors/interface/interface.cc
===================================================================
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index 301171a284d..2f4b574150a 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -1549,21 +1549,6 @@ uiBut *uiDefKeyevtButS(uiBlock *block,
short *spoin,
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.
* here `a1` and `a2`, if set, control thumbnail preview rows/cols.
diff --git a/source/blender/editors/interface/interface.cc b/source/blender/editors/interface/interface.cc
index b7098c26bcd..ee55643c444 100644
--- a/source/blender/editors/interface/interface.cc
+++ b/source/blender/editors/interface/interface.cc
@@ -6291,36 +6291,6 @@ uiBut *uiDefKeyevtButS(uiBlock *block,
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,
void *arg,
int retval,
More information about the Bf-blender-cvs
mailing list