From bcf10cc0b2c756c97a733a3ee7cefa763b575cda Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 4 Jul 2014 15:09:46 -0700 Subject: [PATCH] Remove the create function for MdnsDiscoveryAgent because it can't throw IOException anymore --- .../com/limelight/nvstream/mdns/MdnsDiscoveryAgent.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/moonlight-common/src/com/limelight/nvstream/mdns/MdnsDiscoveryAgent.java b/moonlight-common/src/com/limelight/nvstream/mdns/MdnsDiscoveryAgent.java index 85e61405..44224938 100644 --- a/moonlight-common/src/com/limelight/nvstream/mdns/MdnsDiscoveryAgent.java +++ b/moonlight-common/src/com/limelight/nvstream/mdns/MdnsDiscoveryAgent.java @@ -127,19 +127,12 @@ public class MdnsDiscoveryAgent { return new MdnsComputer(name, uuid, address); } - private MdnsDiscoveryAgent(MdnsDiscoveryListener listener) { + public MdnsDiscoveryAgent(MdnsDiscoveryListener listener) { computers = new HashMap(); pendingResolution = new HashSet(); this.listener = listener; } - public static MdnsDiscoveryAgent createDiscoveryAgent(MdnsDiscoveryListener listener) throws IOException { - MdnsDiscoveryAgent agent = new MdnsDiscoveryAgent(listener); - - - return agent; - } - public void startDiscovery(final int discoveryIntervalMs) { discoveryTimer = new Timer(); discoveryTimer.schedule(new TimerTask() {