[cooja] skins/TrafficVisualizerSkin: Removed unnecessary 'historyCopy'
This commit is contained in:
parent
ea80fd9257
commit
468d533c41
|
@ -192,11 +192,7 @@ public class TrafficVisualizerSkin implements VisualizerSkin {
|
|||
|
||||
@Override
|
||||
public void paintBeforeMotes(Graphics g) {
|
||||
RadioConnectionArrow[] historyCopy = history;
|
||||
if (historyCopy == null) {
|
||||
return;
|
||||
}
|
||||
for (RadioConnectionArrow connArrow : historyCopy) {
|
||||
for (RadioConnectionArrow connArrow : historyList) {
|
||||
float colorHistoryIndex = (float)connArrow.getAge() / (float)connArrow.getMaxAge();
|
||||
g.setColor(new Color(colorHistoryIndex, colorHistoryIndex, 1.0f));
|
||||
Radio source = connArrow.getConnection().getSource();
|
||||
|
|
Loading…
Reference in a new issue