From b3c9041f79609ff18ea2db002eb24d49062689eb Mon Sep 17 00:00:00 2001 From: reger Date: Thu, 2 Jun 2016 01:42:15 +0200 Subject: [PATCH] remove with localHostNames redundant (but unused) publicIPv4HostNames and publicIPv6HostNames to free unused resources --- source/net/yacy/cora/protocol/Domains.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/net/yacy/cora/protocol/Domains.java b/source/net/yacy/cora/protocol/Domains.java index 5f25eeb06..8ed238453 100644 --- a/source/net/yacy/cora/protocol/Domains.java +++ b/source/net/yacy/cora/protocol/Domains.java @@ -101,8 +101,6 @@ public class Domains { private static Set publicIPv4HostAddresses = new HashSet(); // subset of myHostAddresses private static Set publicIPv6HostAddresses = new HashSet(); // subset of myHostAddresses private static Set localHostNames = new HashSet(); // subset of myHostNames - private static Set publicIPv4HostNames = new HashSet(); // subset of myHostNames - private static Set publicIPv6HostNames = new HashSet(); // subset of myHostNames static { localHostNames.add(LOCALHOST); try { @@ -179,10 +177,8 @@ public class Domains { ConcurrentLog.info("Domain Init", "local host address: " + hostaddress + " (public)"); if (a instanceof Inet4Address) { publicIPv4HostAddresses.add(a); - if (hostname != null) {publicIPv4HostNames.add(hostname); publicIPv4HostNames.add(hostaddress);} } else { publicIPv6HostAddresses.add(a); - if (hostname != null) {publicIPv6HostNames.add(hostname); publicIPv6HostNames.add(hostaddress);} } } }