diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-02-09 04:25:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-02-09 04:25:32 +0400 |
commit | 52f080604b642aa969c4ce076fb6bc2553acaa35 (patch) | |
tree | 842289a1b551153b6e195d5f4d22d591e28e03f2 /source/blender/editors | |
parent | 385c892418eec2851d2ab3c30c1ddee4b8ebb237 (diff) |
Code cleanup: remove unused menu functions
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 2 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_regions.c | 24 |
2 files changed, 0 insertions, 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; |