Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C8C8019530 for ; Mon, 11 Apr 2016 20:50:50 +0000 (UTC) Received: (qmail 10874 invoked by uid 500); 11 Apr 2016 20:50:50 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 10828 invoked by uid 500); 11 Apr 2016 20:50:50 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 10819 invoked by uid 99); 11 Apr 2016 20:50:50 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2016 20:50:50 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9CB56DFC70; Mon, 11 Apr 2016 20:50:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: clebertsuconic@apache.org To: commits@activemq.apache.org Date: Mon, 11 Apr 2016 20:50:50 -0000 Message-Id: <6ea8770bbdc84c05aedb5998ea59a4d7@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] activemq-artemis git commit: Remove dead code 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ä Authored: Sun Apr 10 09:07:54 2016 +0300 Committer: Clebert Suconic 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 queueNames = new ArrayList<>(); for (Binding binding : bindings.getBindings()) { if (binding instanceof QueueBinding) { totalMsgs += ((QueueBinding) binding).getQueue().getMessageCount();