changeset 428:b525a8141923

strip some debug code
author Carl Byington <carl@five-ten-sg.com>
date Sun, 14 Dec 2014 19:02:48 -0800
parents f6d26c5f878e
children d5f6d6886113
files src/org/tn5250j/framework/tn5250/Screen5250.java
diffstat 1 files changed, 0 insertions(+), 35 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java	Sun Dec 14 19:00:19 2014 -0800
+++ b/src/org/tn5250j/framework/tn5250/Screen5250.java	Sun Dec 14 19:02:48 2014 -0800
@@ -3302,42 +3302,7 @@
         fireScreenChanged();
     }
 
-    private int xx_position = 0;
-    private int xx_length   = 0;
-    private char[] xx_pending = new char[2048];
-
-    private void xx_flush() {
-        if (xx_length > 0) {
-            char[] p = new char[xx_length];
-            System.arraycopy(xx_pending, 0, p, 0, xx_length);
-            Log.i(TAG, String.format("row %d col %d %s", getRow(xx_position), getCol(xx_position), new String(p)));
-        }
-        xx_length = 0;
-    }
-
-    private void xx_debug(int cByte) {
-        if (cByte == 0) {
-            xx_flush();
-        }
-        else {
-            if (xx_length == 0) {
-                xx_position = lastPos;
-                xx_pending[xx_length++] = (char)cByte;
-            }
-            else if (lastPos == xx_position + xx_length) {
-                xx_pending[xx_length++] = (char)cByte;
-            }
-            else {
-                xx_flush();
-                xx_position = lastPos;
-                xx_pending[xx_length++] = (char)cByte;
-            }
-        }
-    }
-
     protected void setChar(int cByte) {
-        xx_debug(cByte);
-
         if (lastPos > 0) {
             lastAttr = planes.getCharAttr(lastPos - 1);
         }