From f9ee03f1b195a55ea8298783215d50d0ad4f3795 Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Mon, 28 Dec 2009 05:14:32 +0000 Subject: Got rid of some dead code --- source/blender/editors/space_text/text_header.c | 70 ------------------------- 1 file changed, 70 deletions(-) (limited to 'source/blender/editors/space_text/text_header.c') diff --git a/source/blender/editors/space_text/text_header.c b/source/blender/editors/space_text/text_header.c index d0a02f558e1..935103db02b 100644 --- a/source/blender/editors/space_text/text_header.c +++ b/source/blender/editors/space_text/text_header.c @@ -87,76 +87,6 @@ /* ************************ header area region *********************** */ -#ifndef DISABLE_PYTHON -#if 0 -static void do_text_template_scriptsmenu(bContext *C, void *arg, int event) -{ - // XXX BPY_menu_do_python(PYMENU_SCRIPTTEMPLATE, event); -} - -static uiBlock *text_template_scriptsmenu(bContext *C, void *args_unused) -{ - ARegion *ar= CTX_wm_region(C); - uiBlock *block; - // XXX BPyMenu *pym; - // int i= 0; - // short yco = 20, menuwidth = 120; - - block= uiBeginBlock(C, ar, "text_template_scriptsmenu", UI_EMBOSSP); - uiBlockSetButmFunc(block, do_text_template_scriptsmenu, NULL); - - /* note that we acount for the N previous entries with i+20: */ - /* XXX for (pym = BPyMenuTable[PYMENU_SCRIPTTEMPLATE]; pym; pym = pym->next, i++) { - - uiDefIconTextBut(block, BUTM, 1, ICON_PYTHON, pym->name, 0, yco-=20, menuwidth, 19, - NULL, 0.0, 0.0, 1, i, - pym->tooltip?pym->tooltip:pym->filename); - }*/ - - uiBlockSetDirection(block, UI_RIGHT); - uiTextBoundsBlock(block, 60); - - uiEndBlock(C, block); - uiDrawBlock(C, block); - - return block; -} - -static void do_text_plugin_scriptsmenu(bContext *C, void *arg, int event) -{ - // XXX BPY_menu_do_python(PYMENU_TEXTPLUGIN, event); -} - -static uiBlock *text_plugin_scriptsmenu(bContext *C, void *args_unused) -{ - ARegion *ar= CTX_wm_region(C); - uiBlock *block; - // XXX BPyMenu *pym; - // int i= 0; - // short yco = 20, menuwidth = 120; - - block= uiBeginBlock(C, ar, "text_plugin_scriptsmenu", UI_EMBOSSP); - uiBlockSetButmFunc(block, do_text_plugin_scriptsmenu, NULL); - - /* note that we acount for the N previous entries with i+20: */ - /* XXX for (pym = BPyMenuTable[PYMENU_TEXTPLUGIN]; pym; pym = pym->next, i++) { - - uiDefIconTextBut(block, BUTM, 1, ICON_PYTHON, pym->name, 0, yco-=20, menuwidth, 19, - NULL, 0.0, 0.0, 1, i, - pym->tooltip?pym->tooltip:pym->filename); - }*/ - - uiBlockSetDirection(block, UI_RIGHT); - uiTextBoundsBlock(block, 60); - - uiEndBlock(C, block); - uiDrawBlock(C, block); - - return block; -} -#endif -#endif - /************************** properties ******************************/ ARegion *text_has_properties_region(ScrArea *sa) -- cgit v1.2.3