Index: /trunk/src/org/openstreetmap/josm/Main.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/Main.java	(revision 5381)
+++ /trunk/src/org/openstreetmap/josm/Main.java	(revision 5382)
@@ -442,5 +442,5 @@
     }
 
-    public static void unregisterActionShortcut(Shortcut shortcut) {
+    public static void unregisterShortcut(Shortcut shortcut) {
         contentPanePrivate.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).remove(shortcut.getKeyStroke());
     }
@@ -451,5 +451,5 @@
 
     public static void unregisterActionShortcut(Action action, Shortcut shortcut) {
-        contentPanePrivate.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).remove(shortcut.getKeyStroke());
+        unregisterShortcut(shortcut);
         contentPanePrivate.getActionMap().remove(action);
     }
Index: /trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java	(revision 5381)
+++ /trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java	(revision 5382)
@@ -224,5 +224,5 @@
         Main.map.mapView.removeTemporaryLayer(this);
         DataSet.removeSelectionListener(this);
-        Main.unregisterActionShortcut(backspaceShortcut);
+        Main.unregisterShortcut(backspaceShortcut);
         snapHelper.unsetFixedMode();
         snapCheckboxMenuItem.getAction().setEnabled(false);
@@ -1411,5 +1411,5 @@
 
                 if (active) {
-                    double de, dn, l, phi;
+                    double phi;
                     e0 = p0.east();
                     n0 = p0.north();
Index: /trunk/src/org/openstreetmap/josm/gui/MapView.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/gui/MapView.java	(revision 5381)
+++ /trunk/src/org/openstreetmap/josm/gui/MapView.java	(revision 5382)
@@ -736,5 +736,5 @@
                 Main.registerActionShortcut(mode, mode.getShortcut());
             } else {
-                Main.unregisterActionShortcut(mode.getShortcut());
+                Main.unregisterShortcut(mode.getShortcut());
             }
         }
