[Bf-blender-cvs] [52f0806] master: Code cleanup: remove unused menu functions

Campbell Barton noreply at git.blender.org
Sun Feb 9 02:34:15 CET 2014


Commit: 52f080604b642aa969c4ce076fb6bc2553acaa35
Author: Campbell Barton
Date:   Sun Feb 9 11:25:32 2014 +1100
https://developer.blender.org/rB52f080604b642aa969c4ce076fb6bc2553acaa35

Code cleanup: remove unused menu functions

===================================================================

M	source/blender/editors/include/UI_interface.h
M	source/blender/editors/interface/interface_regions.c

===================================================================

diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index a059ca6..754beb5 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 c8b0716..c6ebdc7 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;




More information about the Bf-blender-cvs mailing list