Skip to content

Commit

Permalink
Remove unused fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ssoloff authored and RoiEXLab committed Jan 10, 2018
1 parent 438b9a2 commit 5694bd4
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@
import java.util.Map;
import java.util.Set;
import java.util.function.Predicate;
import java.util.logging.Logger;

import games.strategy.triplea.delegate.Matches;
import games.strategy.util.CollectionUtils;

public class CompositeRouteFinder {
private static final Logger logger = Logger.getLogger(CompositeRouteFinder.class.getName());

private final GameMap map;
private final Map<Predicate<Territory>, Integer> matches;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.lang.reflect.Proxy;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.logging.Logger;

import games.strategy.engine.GameOverException;
import games.strategy.engine.message.MessengerException;
Expand All @@ -28,7 +27,6 @@
* </p>
*/
public class DelegateExecutionManager {
private final Logger logger = Logger.getLogger(DelegateExecutionManager.class.getName());
/*
* Delegate execution can be thought of as a read/write lock.
* Many delegates can be executing at one time (to execute you acquire the read lock), but
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import java.awt.Component;
import java.util.HashMap;
import java.util.Set;
import java.util.logging.Logger;

import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
Expand All @@ -20,7 +19,6 @@
import games.strategy.util.ThreadUtil;

public class LocalLauncher extends AbstractLauncher {
private static final Logger logger = Logger.getLogger(ILauncher.class.getName());
private final IRandomSource randomSource;
private final PlayerListing playerListing;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.util.Set;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;

import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
Expand Down Expand Up @@ -44,7 +43,6 @@
import games.strategy.util.ThreadUtil;

public class ServerLauncher extends AbstractLauncher {
private static final Logger logger = Logger.getLogger(ServerLauncher.class.getName());
private final int clientCount;
private final IRemoteMessenger remoteMessenger;
private final IChannelMessenger channelMessenger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.sql.SQLException;
import java.sql.Timestamp;
import java.time.Instant;
import java.util.logging.Logger;

import javax.annotation.Nullable;

Expand All @@ -16,8 +15,6 @@
* Utility class to create/read/delete banned macs (there is no update).
*/
public class BannedMacController extends TimedController implements BannedMacDao {
private static final Logger logger = Logger.getLogger(BannedMacController.class.getName());

@Override
public void addBannedMac(final String mac, final @Nullable Instant banTill) {
if (banTill == null || banTill.isAfter(now())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
import java.sql.SQLException;
import java.sql.Timestamp;
import java.time.Instant;
import java.util.logging.Logger;

import games.strategy.util.Tuple;

/**
* Utility class to create/read/delete banned usernames (there is no update).
*/
public class BannedUsernameController extends TimedController implements BannedUsernameDao {
private static final Logger logger = Logger.getLogger(BannedUsernameController.class.getName());

@Override
public void addBannedUsername(final String username, final Instant banTill) {
if (banTill == null || banTill.isAfter(now())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@
import java.sql.Timestamp;
import java.time.Instant;
import java.util.Optional;
import java.util.logging.Logger;

/**
* Utilitiy class to create/read/delete muted macs (there is no update).
*/
public class MutedMacController extends TimedController {
private static final Logger logger = Logger.getLogger(MutedMacController.class.getName());

/**
* Mute the given mac. If muteTill is not null, the mute will expire when muteTill is reached.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@
import java.sql.Timestamp;
import java.time.Instant;
import java.util.Optional;
import java.util.logging.Logger;

/**
* Utilitiy class to create/read/delete muted usernames (there is no update).
*/
public class MutedUsernameController extends TimedController {
private static final Logger logger = Logger.getLogger(MutedUsernameController.class.getName());

/**
* Mute the given username. If muteTill is not null, the mute will expire when muteTill is reached.
*
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/games/strategy/triplea/image/ImageRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import java.lang.ref.Reference;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.SoftReference;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.logging.Logger;

import games.strategy.debug.ClientLogger;

Expand All @@ -16,8 +14,6 @@
*/
class ImageRef {
private static final ReferenceQueue<Image> referenceQueue = new ReferenceQueue<>();
private static final Logger logger = Logger.getLogger(ImageRef.class.getName());
private static final AtomicInteger imageCount = new AtomicInteger();

static {
final Thread t = new Thread(() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.logging.Logger;

import javax.swing.Box;
import javax.swing.BoxLayout;
Expand All @@ -28,7 +27,6 @@

public abstract class AbstractMovePanel extends ActionPanel {
private static final long serialVersionUID = -4153574987414031433L;
private static final Logger logger = Logger.getLogger(MovePanel.class.getName());
private static final int entryPadding = 15;
private final TripleAFrame frame;
private boolean listening = false;
Expand Down

0 comments on commit 5694bd4

Please sign in to comment.