Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-12-28 08:14:32 +0300
committerMatt Ebb <matt@mke3.net>2009-12-28 08:14:32 +0300
commitf9ee03f1b195a55ea8298783215d50d0ad4f3795 (patch)
tree6206a12f0d0486c9aaac09c1e8e8163a4c9e12b4 /source/blender/editors/space_text/text_header.c
parentdbf295b904fb0bcb59656a57e32474b1f5adf77a (diff)
Got rid of some dead code
Diffstat (limited to 'source/blender/editors/space_text/text_header.c')
-rw-r--r--source/blender/editors/space_text/text_header.c70
1 files changed, 0 insertions, 70 deletions
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)