From b90c1e27e04cac365f1c0167b07b2932bda0de3e Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Tue, 9 Jan 2018 17:31:26 +0100 Subject: Ida/Example: clean symbexec plugin --- example/ida/graph_ir.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'example/ida/graph_ir.py') 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__": -- cgit 1.4.1