Remove unused iteration count

This commit is contained in:
MagnusUlf 2016-11-29 11:34:05 +01:00
parent d9e0e0633d
commit e9f9693c71
3 changed files with 4 additions and 11 deletions

View File

@ -11,12 +11,6 @@ public abstract class ModificationPollerAbstract extends Thread
this.setName("MStore " + this.getClass().getSimpleName()); this.setName("MStore " + this.getClass().getSimpleName());
} }
// -------------------------------------------- //
// FIELDS
// -------------------------------------------- //
private long iterationCount = 1;
// -------------------------------------------- // // -------------------------------------------- //
// OVERRIDE // OVERRIDE
// -------------------------------------------- // // -------------------------------------------- //
@ -30,7 +24,6 @@ public abstract class ModificationPollerAbstract extends Thread
{ {
//System.out.println("Polling locally: " + MassiveCoreMConf.get().millisBetweenLocalPoll); //System.out.println("Polling locally: " + MassiveCoreMConf.get().millisBetweenLocalPoll);
this.identify(); this.identify();
iterationCount++;
//String message = Txt.parse("<i>LocalModificationThread iteration took <h>%dms<i>.", after-before); //String message = Txt.parse("<i>LocalModificationThread iteration took <h>%dms<i>.", after-before);
//MassiveCore.get().log(message); //MassiveCore.get().log(message);
@ -58,7 +51,7 @@ public abstract class ModificationPollerAbstract extends Thread
{ {
for (Coll<?> coll : Coll.getInstances()) for (Coll<?> coll : Coll.getInstances())
{ {
this.poll(coll, this.iterationCount); this.poll(coll);
} }
} }
@ -67,6 +60,6 @@ public abstract class ModificationPollerAbstract extends Thread
// -------------------------------------------- // // -------------------------------------------- //
public abstract long getMillisBetweenPoll(); public abstract long getMillisBetweenPoll();
public abstract void poll(Coll<?> coll, long iterationCount); public abstract void poll(Coll<?> coll);
} }

View File

@ -29,7 +29,7 @@ public class ModificationPollerLocal extends ModificationPollerAbstract
} }
@Override @Override
public void poll(Coll<?> coll, long iterationCount) public void poll(Coll<?> coll)
{ {
coll.identifyLocalModifications(Modification.UNKNOWN_LOG); coll.identifyLocalModifications(Modification.UNKNOWN_LOG);
} }

View File

@ -39,7 +39,7 @@ public class ModificationPollerRemote extends ModificationPollerAbstract
} }
@Override @Override
public void poll(Coll<?> coll, long iterationCount) public void poll(Coll<?> coll)
{ {
coll.identifyRemoteModifications(Modification.UNKNOWN); coll.identifyRemoteModifications(Modification.UNKNOWN);
} }