remove unused SpaceTime.redraws.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 4 Dec 2011 17:35:17 +0000 (17:35 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 4 Dec 2011 17:35:17 +0000 (17:35 +0000)
now there are no more use of deprecated struct member warnings.

source/blender/blenloader/intern/readfile.c
source/blender/editors/space_time/space_time.c
source/blender/makesdna/DNA_space_types.h

index b5baeab..1759fa6 100644 (file)
@@ -8709,11 +8709,6 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                                                View3D *v3d= (View3D *)sl;
                                                if(v3d->twtype==0) v3d->twtype= V3D_MANIP_TRANSLATE;
                                        }
-                                       else if(sl->spacetype==SPACE_TIME) {
-                                               SpaceTime *stime= (SpaceTime *)sl;
-                                               if(stime->redraws==0)
-                                                       stime->redraws= TIME_ALL_3D_WIN|TIME_ALL_ANIM_WIN;
-                                       }
                                }
                        }
                }
index b3baccd..65ef327 100644 (file)
@@ -580,7 +580,6 @@ static SpaceLink *time_new(const bContext *C)
        stime= MEM_callocN(sizeof(SpaceTime), "inittime");
 
        stime->spacetype= SPACE_TIME;
-       stime->redraws= TIME_ALL_3D_WIN|TIME_ALL_ANIM_WIN; // XXX: depreceated
        stime->flag |= TIME_DRAWFRAMES;
 
        /* header */
index 649b849..6bcea71 100644 (file)
@@ -376,14 +376,11 @@ typedef struct SpaceTime {
        float blockscale  DNA_DEPRECATED;
        
        View2D v2d  DNA_DEPRECATED; /* deprecated, copied to region */
-       
+
        ListBase caches;
-       int cache_display, pad;
-       
-       int flag;
 
-       int redraws  DNA_DEPRECATED; /* redraws is deprecated... moved to screen */
-       
+       int cache_display;
+       int flag;
 } SpaceTime;
 
 typedef struct SpaceNode {
@@ -397,9 +394,8 @@ typedef struct SpaceNode {
        View2D v2d  DNA_DEPRECATED; /* deprecated, copied to region */
        
        struct ID *id, *from;           /* context, no need to save in file? well... pinning... */
-       short flag, menunr;                     /* menunr: browse id block in header */
+       short flag, pad1;                       /* menunr: browse id block in header */
        float aspect;
-       void *curfont;
        
        float xof, yof;         /* offset for drawing the backdrop */
        float zoom, padf;       /* zoom for backdrop */