Got rid of some dead code
[blender-staging.git] / source / blender / editors / space_image / space_image.c
index d82364fed2f16a4c0229f54a7e8d4d1b586ef22b..a077357d03ebb94b27de963cb8221614bf74033f 100644 (file)
@@ -489,36 +489,12 @@ static void image_buttons_area_listener(ARegion *ar, wmNotifier *wmn)
 /* add handlers, stuff you only do once or on area/region changes */
 static void image_header_area_init(wmWindowManager *wm, ARegion *ar)
 {
-#if 0
-       UI_view2d_region_reinit(&ar->v2d, V2D_COMMONVIEW_HEADER, ar->winx, ar->winy);
-#else
        ED_region_header_init(ar);
-#endif
 }
 
 static void image_header_area_draw(const bContext *C, ARegion *ar)
 {
        ED_region_header(C, ar);
-#if 0
-       float col[3];
-       
-       /* clear */
-       if(ED_screen_area_active(C))
-               UI_GetThemeColor3fv(TH_HEADER, col);
-       else
-               UI_GetThemeColor3fv(TH_HEADERDESEL, col);
-       
-       glClearColor(col[0], col[1], col[2], 0.0);
-       glClear(GL_COLOR_BUFFER_BIT);
-       
-       /* set view2d view matrix for scrolling (without scrollers) */
-       UI_view2d_view_ortho(C, &ar->v2d);
-       
-       image_header_buttons(C, ar);
-       
-       /* restore view matrix? */
-       UI_view2d_view_restore(C);
-#endif
 }
 
 /**************************** spacetype *****************************/