Remove duplicated _codeFromEvent function

Change-Id: I3a1b4f4ffa83f8d51ac7e0348cbc3e00d8ebf87a
diff --git a/dev/js/src/menu.js b/dev/js/src/menu.js
index d0ce49a..98204ea 100644
--- a/dev/js/src/menu.js
+++ b/dev/js/src/menu.js
@@ -28,13 +28,6 @@
   // Default maximum number of menu items
   var menuLimit = 8;
 
-  function _codeFromEvent (e) {
-    if (e.charCode && (e.keyCode == 0))
-      return e.charCode
-    return e.keyCode;
-  };
-
-
   /**
    * List of items for drop down menu (complete).
    * Only a sublist of the menu is filtered (live).