[Bf-committers] Unused DNA vars
Campbell Barton
cbarton at metavr.com
Sat Apr 14 22:15:57 CEST 2007
Hi, I found a an unused variable in DNA_object_types.h teh other day so
decided to make a python script to automate the process.
Heres the first pass, variables that are not references anywhere else in
the code, used a full grep in the source tree.
some will need to stay but it looks like most arnt needed.
_______________________________________________________________________
grep for hork
./source/blender/makesdna/DNA_world_types.h:58: float horr, horg, horb,
hork;
grep for softtime
./source/blender/makesdna/DNA_object_types.h:152: float
formfactor, softtime; /* softtime temp for softbody, remove
it before release! */
grep for dimensionspreset
./source/blender/makesdna/DNA_scene_types.h:182: short
dimensionspreset; /* for the dimensions presets menu */
grep for rowbut
./source/blender/makesdna/DNA_space_types.h:87: unsigned int rowbut, pad2;
grep for unusedDNADummy
./source/blender/makesdna/DNA_object_fluidsim.h:114: int unusedDNADummy;
grep for dofmin
./source/blender/makesdna/DNA_world_types.h:100: short dofsta,
dofend, dofmin, dofmax;
grep for chainbase
./source/blender/makesdna/DNA_armature_types.h:76: ListBase
chainbase;
grep for falpha
./source/blender/makesdna/DNA_node_types.h:213: float
fsize,fstrength,falpha;
grep for tw_flag
./source/blender/makesdna/DNA_userdef_types.h:171: short
tw_hotspot, tw_flag, tw_handlesize, tw_size;
./source/blender/makesdna/DNA_userdef_types.h:272:/* tw_flag (transform
widget) */
grep for ml_flag
./source/blender/makesdna/DNA_material_types.h:86: short pr_back,
pr_lamp, septex, ml_flag; /* ml_flag is for disable base material */
grep for maxrotspeed
./source/blender/makesdna/DNA_actuator_types.h:218: float maxspeed,
maxrotspeed, maxtiltspeed;
grep for dofsta
./source/blender/makesdna/DNA_world_types.h:100: short dofsta,
dofend, dofmin, dofmax;
grep for damptimer
./source/blender/makesdna/DNA_sensor_types.h:91: short damptimer,
damp;
grep for zenk
./source/blender/makesdna/DNA_world_types.h:59: float zenr, zeng, zenb,
zenk;
grep for resolv_ren
./source/blender/makesdna/DNA_curve_types.h:163: short
resolu_ren, resolv_ren;
grep for head_equal
./source/blender/makesdna/DNA_screen_types.h:107: char head_swap,
head_equal;
grep for showgroup
./source/blender/makesdna/DNA_space_types.h:125: char texfrom,
showgroup;
grep for win_equal
./source/blender/makesdna/DNA_screen_types.h:108: char win_swap,
win_equal;
grep for postsat
./source/blender/makesdna/DNA_scene_types.h:260: float postmul,
postgamma, posthue, postsat;
grep for numsoundsblender
./source/blender/makesdna/DNA_sound_types.h:127: short
numsoundsblender;
grep for lastval
./source/blender/makesdna/DNA_sensor_types.h:45: int lastval, pad;
grep for dagflags
./source/blender/makesdna/DNA_scene_types.h:448: short
dagisvalid, dagflags;
grep for cursens
./source/blender/makesdna/DNA_space_types.h:116: short cursens,
curact;
grep for ambk
./source/blender/makesdna/DNA_world_types.h:60: float ambr, ambg, ambb,
ambk;
grep for numsoundsgameengine
./source/blender/makesdna/DNA_sound_types.h:128: short
numsoundsgameengine;
grep for curact
./source/blender/makesdna/DNA_space_types.h:116: short cursens,
curact;
grep for butsta
./source/blender/makesdna/DNA_actuator_types.h:114: short pad1, cur,
butsta, butend;
./source/blender/makesdna/DNA_actuator_types.h:138: short pad[3],
cur, butsta, butend;/* not referenced, can remove? */
grep for stark
./source/blender/makesdna/DNA_world_types.h:95: float starr, starg,
starb, stark;
grep for speeddamp
./source/blender/makesdna/DNA_actuator_types.h:220: float rotdamp,
tiltdamp, speeddamp, pad;
grep for rotdamp
./source/blender/makesdna/DNA_actuator_types.h:220: float rotdamp,
tiltdamp, speeddamp, pad;
grep for idblock
./source/blender/makesdna/DNA_ID.h:124: ID *idblock;
./source/blender/makesdna/DNA_ID.h:128: int tot, pad;
/* tot, idblock and filedata are only fo read and write */
grep for dofmax
./source/blender/makesdna/DNA_world_types.h:100: short dofsta,
dofend, dofmin, dofmax;
grep for strideaxis
./source/blender/makesdna/DNA_actuator_types.h:57: short
strideaxis; /* Displacement axis */
grep for pardata
./source/blender/makesdna/DNA_object_types.h:92: void *pardata;
grep for maxrct
./source/blender/makesdna/DNA_curve_types.h:202: rctf maxrct, totrct;
grep for modeltype
./source/blender/makesdna/DNA_space_types.h:127: short modeltype;
grep for postgamma
./source/blender/makesdna/DNA_scene_types.h:260: float postmul,
postgamma, posthue, postsat;
grep for dofend
./source/blender/makesdna/DNA_world_types.h:100: short dofsta,
dofend, dofmin, dofmax;
grep for maxtiltspeed
./source/blender/makesdna/DNA_actuator_types.h:218: float maxspeed,
maxrotspeed, maxtiltspeed;
grep for accelleration
./source/blender/makesdna/DNA_actuator_types.h:217: float mass,
accelleration;
grep for copymade
./source/blender/makesdna/DNA_actuator_types.h:67: short copymade,
pad2[1];
grep for shorty
./source/blender/makesdna/DNA_color_types.h:44: short flag, shorty;
/* shorty for result lookup */
grep for posthue
./source/blender/makesdna/DNA_scene_types.h:260: float postmul,
postgamma, posthue, postsat;
grep for butend
./source/blender/makesdna/DNA_actuator_types.h:114: short pad1, cur,
butsta, butend;
./source/blender/makesdna/DNA_actuator_types.h:138: short pad[3],
cur, butsta, butend;/* not referenced, can remove? */
grep for tiltdamp
./source/blender/makesdna/DNA_actuator_types.h:220: float rotdamp,
tiltdamp, speeddamp, pad;
grep for pr_back
./source/blender/makesdna/DNA_material_types.h:86: short pr_back,
pr_lamp, septex, ml_flag; /* ml_flag is for disable base material */
grep for makecopy
./source/blender/makesdna/DNA_actuator_types.h:66: short type,
makecopy;
More information about the Bf-committers
mailing list