From c52ccf7eefaf2ddf31996021129a09e8a1361ff8 Mon Sep 17 00:00:00 2001 From: zzz Date: Mon, 10 Aug 2009 17:48:16 +0000 Subject: [PATCH] comment out dead oldconsole code --- router/java/src/net/i2p/router/Router.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/router/java/src/net/i2p/router/Router.java b/router/java/src/net/i2p/router/Router.java index d85ea17b2..be38790c5 100644 --- a/router/java/src/net/i2p/router/Router.java +++ b/router/java/src/net/i2p/router/Router.java @@ -771,14 +771,15 @@ public class Router { out.flush(); } - private static int MAX_MSG_LENGTH = 120; + //private static int MAX_MSG_LENGTH = 120; private static final void appendLogMessage(StringBuilder buf, String msg) { // disable this code for the moment because i think it // looks ugly (on the router console) - if (true) { + //if (true) { buf.append(msg); return; - } + //} +/****** if (msg.length() < MAX_MSG_LENGTH) { buf.append(msg); return; @@ -810,9 +811,11 @@ public class Router { newline = msg.indexOf('\n'); len = msg.length(); } +******/ } /** main-ish method for testing appendLogMessage */ +/****** private static final void testAppendLog() { StringBuilder buf = new StringBuilder(1024); Router.appendLogMessage(buf, "hi\nhow are you\nh0h0h0"); @@ -846,6 +849,7 @@ public class Router { System.out.println("line: [" + buf.toString() + "]"); buf.setLength(0); } +******/ public static final int EXIT_GRACEFUL = 2; public static final int EXIT_HARD = 3;