activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [1/2] activemq-artemis git commit: Remove dead code
Date Mon, 11 Apr 2016 20:50:50 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master fbb92482b -> e285c2f30


Remove dead code


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/782d3419
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/782d3419
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/782d3419

Branch: refs/heads/master
Commit: 782d3419b8806d99ad2f0b3f7c40e6f6dad21a2b
Parents: fbb9248
Author: Ville Skyttä <ville.skytta@iki.fi>
Authored: Sun Apr 10 09:07:54 2016 +0300
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Mon Apr 11 16:50:43 2016 -0400

----------------------------------------------------------------------
 .../activemq/artemis/api/core/UDPBroadcastEndpointFactory.java     | 2 --
 .../activemq/artemis/core/management/impl/AddressControlImpl.java  | 1 -
 2 files changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/782d3419/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java
----------------------------------------------------------------------
diff --git a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java
index 4f100e3..dff18a5 100644
--- a/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java
+++ b/artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/UDPBroadcastEndpointFactory.java
@@ -179,8 +179,6 @@ public final class UDPBroadcastEndpointFactory implements BroadcastEndpointFacto
          }
          else {
             if (localAddress != null) {
-               java.util.Random random = new java.util.Random(System.currentTimeMillis());
-
                for (int i = 0; i < 100; i++) {
                   int nextPort = RandomUtil.randomInterval(3000, 4000);
                   try {

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/782d3419/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java
----------------------------------------------------------------------
diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java
b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java
index bf01fbb..7dbe750 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/management/impl/AddressControlImpl.java
@@ -180,7 +180,6 @@ public class AddressControlImpl extends AbstractControl implements AddressContro
       long totalMsgs = 0;
       try {
          Bindings bindings = postOffice.getBindingsForAddress(address);
-         List<String> queueNames = new ArrayList<>();
          for (Binding binding : bindings.getBindings()) {
             if (binding instanceof QueueBinding) {
                totalMsgs += ((QueueBinding) binding).getQueue().getMessageCount();


Mime
View raw message