From 52f080604b642aa969c4ce076fb6bc2553acaa35 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 9 Feb 2014 11:25:32 +1100 Subject: [PATCH] Code cleanup: remove unused menu functions --- source/blender/editors/include/UI_interface.h | 2 -- .../editors/interface/interface_regions.c | 24 ------------------- 2 files changed, 26 deletions(-) diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index a059ca68ec0..754beb59666 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -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 */ diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c index c8b07163114..c6ebdc7fa02 100644 --- a/source/blender/editors/interface/interface_regions.c +++ b/source/blender/editors/interface/interface_regions.c @@ -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;