less consolidateBlocks
This commit is contained in:
parent
4cc4ca6dea
commit
3dad2f1e9c
2 changed files with 2 additions and 12 deletions
|
@ -40,15 +40,5 @@ function consolidateBlocks(clock,side,index){
|
|||
clock.blocks[arr[0]][arr[1]].deleted = 1;
|
||||
}
|
||||
}
|
||||
for (i in sidesChanged) {
|
||||
var flag =0;
|
||||
for( var j=0;j<clock.blocks[sidesChanged[i]].length;j++) {
|
||||
if(clock.blocks[sidesChanged[i]][j].deleted ==1){
|
||||
flag=1;
|
||||
}
|
||||
else if(flag==1){
|
||||
consolidateBlocks(clock,sidesChanged[i],j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue