From 7313c82499d25ba2c6312c38360b336b250c3e81 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Tue, 5 Jun 2018 10:56:55 +0100 Subject: [PATCH] doc: Tidy up method map generation Remove unsed variables and methods from the instrument method map generation. --- doc/build_instrument_method_map.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/doc/build_instrument_method_map.py b/doc/build_instrument_method_map.py index ad5bea4d..b1983801 100644 --- a/doc/build_instrument_method_map.py +++ b/doc/build_instrument_method_map.py @@ -22,18 +22,9 @@ from wa.framework.instrument import SIGNAL_MAP from wa.framework.signal import CallbackPriority from wa.utils.doc import format_simple_table - -CONVINIENCE_ALIASES = ['initialize', 'setup', 'start', 'stop', 'process_workload_result', - 'update_result', 'teardown', 'finalize'] - OUTPUT_TEMPLATE_FILE = os.path.join(os.path.dirname(__file__), 'source', 'instrument_method_map.template') -def escape_trailing_underscore(value): - if value.endswith('_'): - return value[:-1] + '\_' - - def generate_instrument_method_map(outfile): signal_table = format_simple_table([(k, v) for k, v in SIGNAL_MAP.iteritems()], headers=['method name', 'signal'], align='<<')