altosui: remove redundant catches
authorMike Beattie <mike@ethernal.org>
Fri, 14 Sep 2012 01:15:07 +0000 (13:15 +1200)
committerMike Beattie <mike@ethernal.org>
Fri, 14 Sep 2012 01:15:07 +0000 (13:15 +1200)
Signed-off-by: Mike Beattie <mike@ethernal.org>
altosui/AltosConfig.java
altosui/AltosConfigTD.java

index 118baf275754f5239498fa431c13244a5869ff72..44e5a3faf4c5265414476cbc0bc31464543c5a4a 100644 (file)
@@ -502,11 +502,6 @@ public class AltosConfig implements ActionListener {
                                                                            device.toShortString()),
                                                              "Device in use",
                                                              JOptionPane.ERROR_MESSAGE);
-                       } catch (IOException ee) {
-                               JOptionPane.showMessageDialog(owner,
-                                                             device.toShortString(),
-                                                             ee.getLocalizedMessage(),
-                                                             JOptionPane.ERROR_MESSAGE);
                        }
                }
        }
index fcf1efb1c619d62e3b7f39a3e79d655d3d014d9a..e7b9b81f691cbf085c5d73f50cc379664ac3fe15 100644 (file)
@@ -337,11 +337,6 @@ public class AltosConfigTD implements ActionListener {
                                                                            device.toShortString()),
                                                              "Device in use",
                                                              JOptionPane.ERROR_MESSAGE);
-                       } catch (IOException ee) {
-                               JOptionPane.showMessageDialog(owner,
-                                                             device.toShortString(),
-                                                             ee.getLocalizedMessage(),
-                                                             JOptionPane.ERROR_MESSAGE);
                        }
                }
        }