You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by nn...@apache.org on 2020/03/29 23:01:53 UTC
[geode] branch develop updated: GEODE-7864: Removed unused
logConfigListeners in InternalLocator (#4863)
This is an automated email from the ASF dual-hosted git repository.
nnag pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 10c98e0 GEODE-7864: Removed unused logConfigListeners in InternalLocator (#4863)
10c98e0 is described below
commit 10c98e06c1e2560fdeb2652ec64d0c1d25fdbb00
Author: Nabarun Nag <na...@users.noreply.github.com>
AuthorDate: Sun Mar 29 16:01:31 2020 -0700
GEODE-7864: Removed unused logConfigListeners in InternalLocator (#4863)
---
.../org/apache/geode/distributed/internal/InternalLocator.java | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalLocator.java b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalLocator.java
index 170982b..74cda22 100644
--- a/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalLocator.java
+++ b/geode-core/src/main/java/org/apache/geode/distributed/internal/InternalLocator.java
@@ -31,7 +31,6 @@ import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
-import java.util.HashSet;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
@@ -171,7 +170,6 @@ public class InternalLocator extends Locator implements ConnectListener, LogConf
private final LocatorMembershipListener locatorListener;
private final AtomicBoolean shutdownHandled = new AtomicBoolean(false);
private final LoggingSession loggingSession;
- private final Set<LogConfigListener> logConfigListeners = new HashSet<>();
private final LocatorStats locatorStats;
private final Path workingDirectory;
private final MembershipLocator<InternalDistributedMember> membershipLocator;
@@ -1303,14 +1301,10 @@ public class InternalLocator extends Locator implements ConnectListener, LogConf
}
@Override
- public void addLogConfigListener(LogConfigListener logConfigListener) {
- logConfigListeners.add(logConfigListener);
- }
+ public void addLogConfigListener(LogConfigListener logConfigListener) {}
@Override
- public void removeLogConfigListener(LogConfigListener logConfigListener) {
- logConfigListeners.remove(logConfigListener);
- }
+ public void removeLogConfigListener(LogConfigListener logConfigListener) {}
public SharedConfigurationStatusResponse getSharedConfigurationStatus() {
ExecutorService waitingPoolExecutor =