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:
authorThomas Dinges <blender@dingto.org>2012-04-13 04:04:56 +0400
committerThomas Dinges <blender@dingto.org>2012-04-13 04:04:56 +0400
commitbdce58a42c3ca63773ce9c6b32189cfe10b27039 (patch)
tree619a4fec534641c61161ca634d096458543dda50 /source/blender/editors/space_logic
parent2a5a465e2c05dc4d3864019790f745ab75755389 (diff)
Code cleanup:
* Remove some non used *_button_register functions, panels are done in python. * Remove do_node_region_buttons, was not used anymore. Fix: * Only show Grease Pencil panel in the Node editor, when there is a valid nodetree.
Diffstat (limited to 'source/blender/editors/space_logic')
-rw-r--r--source/blender/editors/space_logic/logic_buttons.c53
-rw-r--r--source/blender/editors/space_logic/logic_intern.h1
-rw-r--r--source/blender/editors/space_logic/space_logic.c2
3 files changed, 0 insertions, 56 deletions
diff --git a/source/blender/editors/space_logic/logic_buttons.c b/source/blender/editors/space_logic/logic_buttons.c
index b98e6995f46..dcead6c01db 100644
--- a/source/blender/editors/space_logic/logic_buttons.c
+++ b/source/blender/editors/space_logic/logic_buttons.c
@@ -50,59 +50,6 @@
#include "interface_intern.h"
#include "logic_intern.h"
-#if 0
-static void do_logic_panel_events(bContext *C, void *arg, int event)
-{
-
- switch(event) {
-
- }
-}
-
-
-/* *** */
-
-static void logic_panel_properties(const bContext *C, Panel *pa)
-{
-// SpaceLogic *slogic= CTX_wm_space_logic(C);
- uiBlock *block;
-
- block= uiLayoutAbsoluteBlock(pa->layout);
- uiBlockSetHandleFunc(block, do_logic_panel_events, NULL);
-
-}
-
-static void logic_panel_view_properties(const bContext *C, Panel *pa)
-{
- // SpaceLogic *slogic= CTX_wm_space_logic(C);
- uiBlock *block;
-
- block= uiLayoutAbsoluteBlock(pa->layout);
- uiBlockSetHandleFunc(block, do_logic_panel_events, NULL);
-
-}
-#endif
-
-void logic_buttons_register(ARegionType *UNUSED(art))
-{
-#if 0
- PanelType *pt;
-
- pt= MEM_callocN(sizeof(PanelType), "spacetype logic panel properties");
- strcpy(pt->idname, "LOGIC_PT_properties");
- strcpy(pt->label, "Logic Properties");
- pt->draw= logic_panel_properties;
- BLI_addtail(&art->paneltypes, pt);
-
- pt= MEM_callocN(sizeof(PanelType), "spacetype logic view properties");
- strcpy(pt->idname, "LOGIC_PT_view_properties");
- strcpy(pt->label, "View Properties");
- pt->draw= logic_panel_view_properties;
- BLI_addtail(&art->paneltypes, pt);
-#endif
-
-}
-
static int logic_properties(bContext *C, wmOperator *UNUSED(op))
{
ScrArea *sa= CTX_wm_area(C);
diff --git a/source/blender/editors/space_logic/logic_intern.h b/source/blender/editors/space_logic/logic_intern.h
index 3e0b13e9d6c..38b122f64b6 100644
--- a/source/blender/editors/space_logic/logic_intern.h
+++ b/source/blender/editors/space_logic/logic_intern.h
@@ -48,7 +48,6 @@ struct ARegion *logic_has_buttons_region(struct ScrArea *sa);
/* logic_ops.c */
/* logic_buttons.c */
-void logic_buttons_register(struct ARegionType *art);
void LOGIC_OT_properties(struct wmOperatorType *ot);
void LOGIC_OT_links_cut(struct wmOperatorType *ot);
diff --git a/source/blender/editors/space_logic/space_logic.c b/source/blender/editors/space_logic/space_logic.c
index 1b6d72cbc3e..82175f83d39 100644
--- a/source/blender/editors/space_logic/space_logic.c
+++ b/source/blender/editors/space_logic/space_logic.c
@@ -337,8 +337,6 @@ void ED_spacetype_logic(void)
art->draw= logic_buttons_area_draw;
BLI_addhead(&st->regiontypes, art);
- logic_buttons_register(art);
-
/* regions: header */
art= MEM_callocN(sizeof(ARegionType), "spacetype logic region");
art->regionid = RGN_TYPE_HEADER;