From 15bfa2359f492bd1f2e3ff7a44b5845bcd107957 Mon Sep 17 00:00:00 2001 From: "stephen@sfnelson.org" Date: Fri, 3 Oct 2008 04:46:44 +0000 Subject: [PATCH] Removed release, as noone was using it. May need to revisit this. git-svn-id: https://stereo.googlecode.com/svn/trunk@352 c67ee986-0855-0410-825f-15918b819f62 --- DAAPLib/src/daap/DAAPUtilities.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DAAPLib/src/daap/DAAPUtilities.java b/DAAPLib/src/daap/DAAPUtilities.java index 541a5c4..e0146d6 100755 --- a/DAAPLib/src/daap/DAAPUtilities.java +++ b/DAAPLib/src/daap/DAAPUtilities.java @@ -27,7 +27,7 @@ public class DAAPUtilities { this.names = new HashMap(); this.types = new HashMap(); - this.requests = new HashMap(); + //this.requests = new HashMap(); DAAPUtilities.initContentCodes(this.names, this.types); @@ -56,7 +56,7 @@ public class DAAPUtilities { // Read the response body. responseBody = method.getResponseBodyAsStream(); - this.requests.put(responseBody, method); + //this.requests.put(responseBody, method); return responseBody; @@ -75,7 +75,7 @@ public class DAAPUtilities { protected InputStream songRequest(String hostname, int port, String request) throws IOException { return request(clientSong, hostname, port, request); } - + /* protected void release(InputStream request) { if ((request != null) && (this.requests.get(request) != null)) { try { @@ -86,7 +86,7 @@ public class DAAPUtilities { this.requests.get(request).releaseConnection(); this.requests.remove(request); } - } + }*/ private void retrieveContentCodes(final String hostname, int port) throws IOException { @@ -116,13 +116,13 @@ public class DAAPUtilities { } } - this.release(response); + //this.release(response); } protected Map names; protected Map types; - private Map requests; + //private Map requests; private static void initContentCodes(Map names, Map types) { names.put(stringToInt("mdcl"), "dmap.dictionary"); -- 2.11.4.GIT