[Webfunds-commits] java/webfunds/sox Encodable.java

Ian Grigg iang@cypherpunks.ai
Wed, 7 Jun 2000 16:33:22 -0400 (AST)


iang        00/06/07 16:33:22

  Modified:    webfunds/sox Encodable.java
  Log:
  cleaned out old commented code

Revision  Changes    Path
1.19      +2 -7      java/webfunds/sox/Encodable.java

Index: Encodable.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/Encodable.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- Encodable.java	2000/04/20 00:03:32	1.18
+++ Encodable.java	2000/06/07 20:33:22	1.19
@@ -1,5 +1,5 @@
 /*
- * $Id: Encodable.java,v 1.18 2000/04/20 00:03:32 iang Exp $
+ * $Id: Encodable.java,v 1.19 2000/06/07 20:33:22 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -72,11 +72,7 @@
         }
         catch (IOException e)
         {
-//            ByteArrayOutputStream baos = new ByteArrayOutputStream();
-//            PrintWriter pw = new PrintWriter(baos);
-            e.printStackTrace();
-//            pw.flush();
-//            String stack = new String(baos.toByteArray());
+            e.printStackTrace();  // ouch
             throw new SOXPacketException("IOEx in decode(byte[]) " +
                                          "(data too short or junk?): " + e);
         }
@@ -88,7 +84,6 @@
             PrintWriter pw = new PrintWriter(baos);
             pw.flush();
             String stack = new String(baos.toByteArray());
-System.err.println("STACK: " + stack);
             throw new SOXPacketException("Too much data (" +
                                           bais.available() + " byte(s) extra)");
         }