From e55a1f608acb1cca65b75ff3756b1a4f4c601da5 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Wed, 9 May 2012 21:05:34 +0000 Subject: [PATCH] comment out unused text summaries --- .../src/net/i2p/i2ptunnel/TunnelController.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java index 14771b339f..a2dc146d62 100644 --- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java +++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/TunnelController.java @@ -29,6 +29,8 @@ import net.i2p.util.SecureFileOutputStream; * These objects are bundled together under a TunnelControllerGroup where the * 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 { private final Log _log; @@ -523,8 +525,14 @@ public class TunnelController implements Logging { return true; } + /** + * A text description of the tunnel. + * @deprecated unused + */ public void getSummary(StringBuilder buf) { String type = getType(); + buf.append(type); + /**** if ("httpclient".equals(type)) getHttpClientSummary(buf); else if ("client".equals(type)) @@ -535,8 +543,10 @@ public class TunnelController implements Logging { getHttpServerSummary(buf); else buf.append("Unknown type ").append(type); + ****/ } + /**** private void getHttpClientSummary(StringBuilder buf) { String description = getDescription(); if ( (description != null) && (description.trim().length() > 0) ) @@ -628,7 +638,11 @@ public class TunnelController implements Logging { } } } + ****/ + /** + * + */ public void log(String s) { synchronized (this) { _messages.add(s); -- GitLab