mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 02:39:23 +02:00
Code cleanup
Unused variables have been removed
This commit is contained in:
parent
0bb412732e
commit
c8d44f4efe
2 changed files with 3 additions and 7 deletions
|
@ -32,7 +32,6 @@ abstract class ItemsLoadingRunnable implements Runnable {
|
|||
private final ItemsLoadingHandler myHandler;
|
||||
|
||||
private final long myUpdateInterval; // in milliseconds
|
||||
private final int myItemsLimit;
|
||||
|
||||
private boolean myInterruptRequested;
|
||||
private boolean myInterruptConfirmed;
|
||||
|
@ -75,13 +74,12 @@ abstract class ItemsLoadingRunnable implements Runnable {
|
|||
|
||||
|
||||
public ItemsLoadingRunnable(ItemsLoadingHandler handler) {
|
||||
this(handler, 1000, 500);
|
||||
this(handler, 1000);
|
||||
}
|
||||
|
||||
public ItemsLoadingRunnable(ItemsLoadingHandler handler, long updateIntervalMillis, int itemsLimit) {
|
||||
public ItemsLoadingRunnable(ItemsLoadingHandler handler, long updateIntervalMillis) {
|
||||
myHandler = handler;
|
||||
myUpdateInterval = updateIntervalMillis;
|
||||
myItemsLimit = itemsLimit;
|
||||
}
|
||||
|
||||
public abstract String doBefore();
|
||||
|
@ -109,7 +107,7 @@ abstract class ItemsLoadingRunnable implements Runnable {
|
|||
}
|
||||
}
|
||||
public boolean confirmInterrupt() {
|
||||
return confirmInterruptLoading() /*|| myItemsNumber >= ItemsLimit*/;
|
||||
return confirmInterruptLoading();
|
||||
}
|
||||
public void commitItems(INetworkLink link) {
|
||||
myHandler.commitItems(link);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue