Fix compilaiton error in debug mode

The structure was just calloc-ed, no need to check for anything. It's all zeroes!
This commit is contained in:
Sergey Sharybin 2017-12-20 16:41:51 +01:00
parent a52452c043
commit 9eb46fc22b
1 changed files with 0 additions and 2 deletions

View File

@ -321,8 +321,6 @@ static uiTooltipData *ui_tooltip_data_from_keymap(bContext *C, wmKeyMap *keymap)
/* create tooltip data */
uiTooltipData *data = MEM_callocN(sizeof(uiTooltipData), "uiTooltipData");
BLI_assert(data->fields_len < MAX_TOOLTIP_LINES);
for (wmKeyMapItem *kmi = keymap->items.first; kmi; kmi = kmi->next) {
wmOperatorType *ot = WM_operatortype_find(kmi->idname, true);
if (ot != NULL) {