]> source.dussan.org Git - tigervnc.git/commitdiff
remove some bits of dead/unused code
authorBrian Hinz <bphinz@users.sourceforge.net>
Wed, 11 Apr 2012 14:38:48 +0000 (14:38 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Wed, 11 Apr 2012 14:38:48 +0000 (14:38 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4885 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/com/tigervnc/vncviewer/CConn.java
java/com/tigervnc/vncviewer/OptionsDialog.java
java/com/tigervnc/vncviewer/ServerDialog.java
java/com/tigervnc/vncviewer/VncViewer.java

index df2d315f7c3b987e219bb04c19b1f373206007d6..861144c1f1b7b3ea410849aa9a747925a1c2f18a 100644 (file)
@@ -967,7 +967,6 @@ public class CConn extends CConnection
 
     options.fullScreen.setSelected(fullScreen);
     options.useLocalCursor.setSelected(viewer.useLocalCursor.getValue());
-    options.fastCopyRect.setSelected(viewer.fastCopyRect.getValue());
     options.acceptBell.setSelected(viewer.acceptBell.getValue());
     String scaleString = viewer.scalingFactor.getValue();
     if (scaleString.equals("Auto")) {
@@ -1041,7 +1040,6 @@ public class CConn extends CConnection
     viewer.viewOnly.setParam(options.viewOnly.isSelected());
     viewer.acceptClipboard.setParam(options.acceptClipboard.isSelected());
     viewer.sendClipboard.setParam(options.sendClipboard.isSelected());
-    viewer.fastCopyRect.setParam(options.fastCopyRect.isSelected());
     viewer.acceptBell.setParam(options.acceptBell.isSelected());
     String scaleString =
       options.scalingFactor.getSelectedItem().toString();
index 9a463fb35b1f29067d957ed18e712093fa9bfbb9..b5dad7e0ec0b9e92117b1e4795429df8de1f3850 100644 (file)
@@ -42,7 +42,7 @@ class OptionsDialog extends Dialog implements
   JRadioButton zrle, hextile, tight, raw;
   JRadioButton fullColour, mediumColour, lowColour, veryLowColour;
   JCheckBox viewOnly, acceptClipboard, sendClipboard, acceptBell;
-  JCheckBox fullScreen, shared, useLocalCursor, fastCopyRect;
+  JCheckBox fullScreen, shared, useLocalCursor;
   JCheckBox secVeNCrypt, encNone, encTLS, encX509;
   JCheckBox secNone, secVnc, secPlain, secIdent, sendLocalUsername;
   JButton okButton, cancelButton;
@@ -149,8 +149,6 @@ class OptionsDialog extends Dialog implements
     shared.addItemListener(this);
     useLocalCursor = new JCheckBox("Render cursor locally");
     useLocalCursor.addItemListener(this);
-    fastCopyRect = new JCheckBox("Fast CopyRect");
-    fastCopyRect.addItemListener(this);
     acceptBell = new JCheckBox("Beep when requested by the server");
     acceptBell.addItemListener(this);
     JLabel scalingFactorLabel = new JLabel("Scaling Factor");
@@ -163,10 +161,9 @@ class OptionsDialog extends Dialog implements
     addGBComponent(fullScreen,MiscPanel,     0, 0, 2, 1, 0, 0, 1, 0, GridBagConstraints.HORIZONTAL, GridBagConstraints.LINE_START, new Insets(4,4,0,4));
     addGBComponent(shared,MiscPanel,         0, 1, 2, 1, 0, 0, 1, 0, GridBagConstraints.HORIZONTAL, GridBagConstraints.LINE_START, new Insets(4,4,0,4));
     addGBComponent(useLocalCursor,MiscPanel, 0, 2, 2, 1, 0, 0, 1, 0, GridBagConstraints.HORIZONTAL, GridBagConstraints.LINE_START, new Insets(4,4,0,4));
-    addGBComponent(fastCopyRect,MiscPanel,   0, 3, 2, 1, 0, 0, 1, 0, GridBagConstraints.HORIZONTAL, GridBagConstraints.LINE_START, new Insets(4,4,0,4));
-    addGBComponent(acceptBell,MiscPanel,     0, 4, 2, 1, 0, 0, 1, 0, GridBagConstraints.HORIZONTAL, GridBagConstraints.FIRST_LINE_START, new Insets(4,4,0,4));
-    addGBComponent(scalingFactorLabel,MiscPanel, 0, 5, 1, GridBagConstraints.REMAINDER, 0, 0, 1, 1, GridBagConstraints.NONE, GridBagConstraints.FIRST_LINE_START, new Insets(8,8,0,4));
-    addGBComponent(scalingFactor,MiscPanel, 1, 5, 1, GridBagConstraints.REMAINDER, 0, 0, 25, 1, GridBagConstraints.NONE, GridBagConstraints.FIRST_LINE_START, new Insets(4,4,0,4));
+    addGBComponent(acceptBell,MiscPanel,     0, 3, 2, 1, 0, 0, 1, 0, GridBagConstraints.HORIZONTAL, GridBagConstraints.FIRST_LINE_START, new Insets(4,4,0,4));
+    addGBComponent(scalingFactorLabel,MiscPanel, 0, 4, 1, GridBagConstraints.REMAINDER, 0, 0, 1, 1, GridBagConstraints.NONE, GridBagConstraints.FIRST_LINE_START, new Insets(8,8,0,4));
+    addGBComponent(scalingFactor,MiscPanel, 1, 4, 1, GridBagConstraints.REMAINDER, 0, 0, 25, 1, GridBagConstraints.NONE, GridBagConstraints.FIRST_LINE_START, new Insets(4,4,0,4));
 
     // load/save tab
     DefaultsPanel=new JPanel(new GridBagLayout());
index 0f32a96c20453e5064fdda5c8c8110e731099abe..3f482b2e7e0c49e7415b8e0a320438718579c97d 100644 (file)
@@ -63,9 +63,6 @@ class ServerDialog extends Dialog implements
 
     server.setEditable(true);
     editor = server.getEditor();
-    JLabel encryptionLabel = new JLabel("Encryption:");
-    encryption = new JComboBox();
-    serverLabel.setPreferredSize(encryptionLabel.getPreferredSize());
 
     JPanel topPanel = new JPanel(new GridBagLayout());
 
@@ -135,7 +132,6 @@ class ServerDialog extends Dialog implements
   public void endDialog() {
     if (ok) {
       try {
-        options.defaults.setPref("encryption",(encryption.getSelectedIndex()==1) ? "off" : "on");
         if (!server.getSelectedItem().toString().equals("")) {
           String t = (options.defaults.getString("server")==null) ? "" : options.defaults.getString("server");
           StringTokenizer st = new StringTokenizer(t, ",");
@@ -166,7 +162,7 @@ class ServerDialog extends Dialog implements
   }
 
   CConn cc;
-  JComboBox encryption, server;
+  JComboBox server;
   ComboBoxEditor editor;
   JButton aboutButton, optionsButton, okButton, cancelButton;
   OptionsDialog options;
index f7d1f62a2fcf8e29a9c90048fac5ffd427269a9a..7f664577a9bcc2a5558f1e9c33f6dcd1efacec52 100644 (file)
@@ -338,11 +338,6 @@ public class VncViewer extends java.applet.Applet implements Runnable
     }
   }
 
-  BoolParameter fastCopyRect
-  = new BoolParameter("FastCopyRect",
-                          "Use fast CopyRect - turn this off if you get "+
-                          "screen corruption when copying from off-screen",
-                          true);
   BoolParameter useLocalCursor
   = new BoolParameter("UseLocalCursor",
                           "Render the mouse cursor locally", true);