You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2015/09/20 08:27:42 UTC

logging-log4j2 git commit: LOG4J2-1121 - remove variables that aren't used

Repository: logging-log4j2
Updated Branches:
  refs/heads/LOG4J2-1121B-ReliabilityStrategy a536638af -> d140bd948


LOG4J2-1121 - remove variables that aren't used


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/d140bd94
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/d140bd94
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/d140bd94

Branch: refs/heads/LOG4J2-1121B-ReliabilityStrategy
Commit: d140bd948b0a9fd1a260ba79836103df1c8d0325
Parents: a536638
Author: Ralph Goers <rg...@nextiva.com>
Authored: Sat Sep 19 23:26:23 2015 -0700
Committer: Ralph Goers <rg...@nextiva.com>
Committed: Sat Sep 19 23:27:26 2015 -0700

----------------------------------------------------------------------
 .../logging/log4j/core/config/LockingReliabilityStrategy.java   | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d140bd94/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LockingReliabilityStrategy.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LockingReliabilityStrategy.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LockingReliabilityStrategy.java
index 7bd92a6..82de1fa 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LockingReliabilityStrategy.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/LockingReliabilityStrategy.java
@@ -37,11 +37,6 @@ import org.apache.logging.log4j.util.Supplier;
  * and waits for these threads to finish before allowing the appenders to be stopped.
  */
 public class LockingReliabilityStrategy implements ReliabilityStrategy {
-    private static final int MAX_RETRIES = 3;
-    private final AtomicInteger counter = new AtomicInteger();
-    private final AtomicBoolean shutdown = new AtomicBoolean(false);
-    private final Lock shutdownLock = new ReentrantLock();
-    private final Condition noLogEvents = shutdownLock.newCondition(); // should only be used when shutdown == true
     private final LoggerConfig loggerConfig;
     private final ReadWriteLock reconfigureLock = new ReentrantReadWriteLock();
     private volatile boolean isStopping = false;