about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--example/ida/graph_ir.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/example/ida/graph_ir.py b/example/ida/graph_ir.py
index 9a65617b..8d9dea4f 100644
--- a/example/ida/graph_ir.py
+++ b/example/ida/graph_ir.py
@@ -95,18 +95,9 @@ class GraphMiasmIR(idaapi.GraphViewer):
     def OnClick(self, node_id):
         return True
 
-    def OnCommand(self, cmd_id):
-        if self.cmd_test == cmd_id:
-            print 'TEST!'
-            return
-        print "command:", cmd_id
-
     def Show(self):
         if not idaapi.GraphViewer.Show(self):
             return False
-        self.cmd_test = self.AddCommand("Test", "F2")
-        if self.cmd_test == 0:
-            print "Failed to add popup menu item!"
         return True
 
 
@@ -185,9 +176,6 @@ def build_graph(verbose=False, simplify=False):
 
     g = GraphMiasmIR(ir_arch, title, None)
 
-    g.cmd_a = g.AddCommand("cmd a", "x")
-    g.cmd_b = g.AddCommand("cmd b", "y")
-
     g.Show()
 
 if __name__ == "__main__":