changeset 152:695d0206eedb

cleanup some obsolete code
author Carl Byington <carl@five-ten-sg.com>
date Mon, 23 Jun 2014 08:46:13 -0700
parents 026f5b85bd63
children 3ca280646f2d
files src/org/tn5250j/framework/tn5250/Screen5250.java
diffstat 1 files changed, 0 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java	Mon Jun 23 08:34:50 2014 -0700
+++ b/src/org/tn5250j/framework/tn5250/Screen5250.java	Mon Jun 23 08:46:13 2014 -0700
@@ -96,15 +96,9 @@
     // screen planes
     protected ScreenPlanes planes;
 
-    //Added by Barry
-    private StringBuffer keybuf;
-
 
 
     public Screen5250() {
-        //Added by Barry
-        this.keybuf = new StringBuffer();
-
         try {
             jbInit();
         }
@@ -613,13 +607,6 @@
         }
     }
 
-    //Added by Barry
-    public String getKeys() {
-        String result = this.keybuf.toString();
-        this.keybuf = new StringBuffer();
-        return result;
-    }
-
     /**
      * The sendKeys method sends a string of keys to the virtual screen. This
      * method acts as if keystrokes were being typed from the keyboard. The
@@ -924,8 +911,6 @@
      */
 
     public synchronized void sendKeys(String text) {
-        this.keybuf.append(text);
-
         if (isStatusErrorCode() && !resetRequired) {
             setCursorActive(false);
             simulateMnemonic(getMnemonicValue("[reset]"));
@@ -959,9 +944,7 @@
                     text = bufferedKeys + text;
                 }
 
-                //            if (text.length() == 0) {
                 oia.setKeysBuffered(false);
-                //            }
                 bufferedKeys = null;
             }
 
@@ -970,12 +953,9 @@
             isInField(lastPos, true);
 
             if (text.length() == 1 && !text.equals("[") && !text.equals("]")) {
-                //               setCursorOff2();
                 setCursorActive(false);
                 simulateKeyStroke(text.charAt(0));
                 setCursorActive(true);
-                //               setCursorOn2();
-                //                     System.out.println(" text one");
             }
             else {
                 strokenizer.setKeyStrokes(text);