remove useless code
authorAndrey Skvortsov <andrej.skvortzov@gmail.com>
Wed, 04 Jul 2018 17:47:38 +0300
changeset 2243 02f03bd7639e
parent 2242 492c1c046c82
child 2244 42566291b9bc
child 2252 de3f7c183e62
remove useless code

1. hotkey is already defined in menu string
2. remove duplicated code
BeremizIDE.py
IDEFrame.py
--- a/BeremizIDE.py	Wed Jul 04 16:41:02 2018 +0300
+++ b/BeremizIDE.py	Wed Jul 04 17:47:38 2018 +0300
@@ -329,10 +329,6 @@
         self.Bind(wx.EVT_MENU, self.OnOpenWidgetInspector, id=inspectorID)
         accels = [wx.AcceleratorEntry(wx.ACCEL_CTRL | wx.ACCEL_ALT, ord('I'), inspectorID)]
 
-        keyID = wx.NewId()
-        self.Bind(wx.EVT_MENU, self.SwitchFullScrMode, id=keyID)
-        accels += [wx.AcceleratorEntry(wx.ACCEL_NORMAL, wx.WXK_F12, keyID)]
-
         for method, shortcut in [("Stop",     wx.WXK_F4),
                                  ("Run",      wx.WXK_F5),
                                  ("Transfer", wx.WXK_F6),
--- a/IDEFrame.py	Wed Jul 04 16:41:02 2018 +0300
+++ b/IDEFrame.py	Wed Jul 04 17:47:38 2018 +0300
@@ -404,8 +404,6 @@
                   id=ID_PLCOPENEDITOREDITMENUFINDPREVIOUS)
         self.Bind(wx.EVT_MENU, self.OnSearchInProjectMenu,
                   id=ID_PLCOPENEDITOREDITMENUSEARCHINPROJECT)
-        self.Bind(wx.EVT_MENU, self.OnSearchInProjectMenu,
-                  id=ID_PLCOPENEDITOREDITMENUSEARCHINPROJECT)
         self.Bind(wx.EVT_MENU, self.OnAddDataTypeMenu,
                   id=ID_PLCOPENEDITOREDITMENUADDDATATYPE)
         self.Bind(wx.EVT_MENU, self.GenerateAddPouFunction("function"),