I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit e55a1f60 authored by zzz's avatar zzz
Browse files

comment out unused text summaries

parent cbbf82a4
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,8 @@ import net.i2p.util.SecureFileOutputStream; ...@@ -29,6 +29,8 @@ import net.i2p.util.SecureFileOutputStream;
* These objects are bundled together under a TunnelControllerGroup where the * These objects are bundled together under a TunnelControllerGroup where the
* entire group is stored / loaded from a single config file. * entire group is stored / loaded from a single config file.
* *
* This is the class used by several plugins to create tunnels, so
* take care to maintain the public methods as a stable API.
*/ */
public class TunnelController implements Logging { public class TunnelController implements Logging {
private final Log _log; private final Log _log;
...@@ -523,8 +525,14 @@ public class TunnelController implements Logging { ...@@ -523,8 +525,14 @@ public class TunnelController implements Logging {
return true; return true;
} }
/**
* A text description of the tunnel.
* @deprecated unused
*/
public void getSummary(StringBuilder buf) { public void getSummary(StringBuilder buf) {
String type = getType(); String type = getType();
buf.append(type);
/****
if ("httpclient".equals(type)) if ("httpclient".equals(type))
getHttpClientSummary(buf); getHttpClientSummary(buf);
else if ("client".equals(type)) else if ("client".equals(type))
...@@ -535,8 +543,10 @@ public class TunnelController implements Logging { ...@@ -535,8 +543,10 @@ public class TunnelController implements Logging {
getHttpServerSummary(buf); getHttpServerSummary(buf);
else else
buf.append("Unknown type ").append(type); buf.append("Unknown type ").append(type);
****/
} }
/****
private void getHttpClientSummary(StringBuilder buf) { private void getHttpClientSummary(StringBuilder buf) {
String description = getDescription(); String description = getDescription();
if ( (description != null) && (description.trim().length() > 0) ) if ( (description != null) && (description.trim().length() > 0) )
...@@ -628,7 +638,11 @@ public class TunnelController implements Logging { ...@@ -628,7 +638,11 @@ public class TunnelController implements Logging {
} }
} }
} }
****/
/**
*
*/
public void log(String s) { public void log(String s) {
synchronized (this) { synchronized (this) {
_messages.add(s); _messages.add(s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment