Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill an unused variable
[simgrid.git] / examples / java / bittorrent / Peer.java
index 10fd6c5..6ce5a54 100644 (file)
@@ -419,10 +419,9 @@ public class Peer extends Process {
                        return;
                }
                if (true || pieces < 3) {
-                       int i = 0, peerPiece;
+                       int peerPiece;
                        do {
                                currentPiece = stream.randInt(0,Common.FILE_PIECES - 1);
-                               i++;
                        } while (!(bitfield[currentPiece] == '0' && !currentPieces.contains(currentPiece)));
                }
                else {