Skip to content

Commit

Permalink
[cooja] skins/TrafficVisualizerSkin: Removed unnecessary 'historyCopy'
Browse files Browse the repository at this point in the history
  • Loading branch information
Enrico Joerns committed Jul 10, 2014
1 parent ea80fd9 commit 468d533
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,7 @@ private int xCor(int len, double dir) {

@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();
Expand Down

0 comments on commit 468d533

Please sign in to comment.