Revision e4577791
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/library/program/DistortedProgram.java | ||
---|---|---|
349 | 349 |
|
350 | 350 |
int emptyAttrs = 0; |
351 | 351 |
|
352 |
for(int i=0; i<mNumAttributes; i++) |
|
352 |
for(int i=0; i<mNumAttributes-emptyAttrs; i++)
|
|
353 | 353 |
{ |
354 | 354 |
if( att[i] < 0 ) |
355 | 355 |
{ |
356 | 356 |
emptyAttrs++; |
357 | 357 |
|
358 |
for(int j=i; j<mNumAttributes-1; j++)
|
|
358 |
for(int j=i; j<mNumAttributes-emptyAttrs; j++)
|
|
359 | 359 |
{ |
360 | 360 |
att[j] = att[j+1]; |
361 | 361 |
mAttributeName[j] = mAttributeName[j+1]; |
Also available in: Unified diff
fix detection of not used attributes.