mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-24 19:29:13 +00:00
[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…
x
Reference in New Issue
Block a user