Code cleanup: remove unused menu functions
This commit is contained in:
@@ -350,8 +350,6 @@ struct uiLayout *uiPupMenuLayout(uiPopupMenu *head);
|
||||
|
||||
void uiPupMenuOkee(struct bContext *C, const char *opname, const char *str, ...) ATTR_PRINTF_FORMAT(3, 4);
|
||||
void uiPupMenuSaveOver(struct bContext *C, struct wmOperator *op, const char *filename);
|
||||
void uiPupMenuNotice(struct bContext *C, const char *str, ...) ATTR_PRINTF_FORMAT(2, 3);
|
||||
void uiPupMenuError(struct bContext *C, const char *str, ...) ATTR_PRINTF_FORMAT(2, 3);
|
||||
void uiPupMenuReports(struct bContext *C, struct ReportList *reports);
|
||||
void uiPupMenuInvoke(struct bContext *C, const char *idname); /* popup registered menu */
|
||||
|
||||
|
||||
@@ -2687,30 +2687,6 @@ void uiPupMenuSaveOver(bContext *C, wmOperator *op, const char *filename)
|
||||
confirm_operator(C, op, IFACE_("Save Over?"), filename);
|
||||
}
|
||||
|
||||
void uiPupMenuNotice(bContext *C, const char *str, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, str);
|
||||
vconfirm_opname(C, NULL, NULL, str, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
void uiPupMenuError(bContext *C, const char *str, ...)
|
||||
{
|
||||
va_list ap;
|
||||
char nfmt[256];
|
||||
char titlestr[256];
|
||||
|
||||
BLI_snprintf(titlestr, sizeof(titlestr), IFACE_("Error %%i%d"), ICON_ERROR);
|
||||
|
||||
BLI_strncpy(nfmt, str, sizeof(nfmt));
|
||||
|
||||
va_start(ap, str);
|
||||
vconfirm_opname(C, NULL, titlestr, nfmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
void uiPupMenuReports(bContext *C, ReportList *reports)
|
||||
{
|
||||
Report *report;
|
||||
|
||||
Reference in New Issue
Block a user