Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove lines of commented code spotted by sonar.
[simgrid.git] / examples / java / app / bittorrent / Connection.java
index 3143889..1bd47eb 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2014, 2016. The SimGrid Team.
+/* Copyright (c) 2006-2014, 2016-2017. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -9,7 +9,7 @@ import java.util.Arrays;
 
 public class Connection {
   protected int id;
-  protected char bitfield[];
+  protected char[] bitfield;
   protected String mailbox;
   // Indicates if we are interested in something this peer has
   protected boolean amInterested = false;
@@ -32,7 +32,6 @@ public class Connection {
   // Add a new value to the peer speed average
   public void addSpeedValue(double speed) {
     peerSpeed = peerSpeed * 0.55 + speed * 0.45;
-    // peerSpeed = (peerSpeed * messagesCount + speed) / (++messagesCount);    
   }
 
   @Override