From d230ef842ced2e4e1db24067b3d0df6a1d21c36c Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 13 Apr 2017 18:42:37 +0100 Subject: mapi_abi.py: remove no longer used --mode option Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom --- src/mapi/mapi_abi.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/mapi/mapi_abi.py') diff --git a/src/mapi/mapi_abi.py b/src/mapi/mapi_abi.py index d6c505caa81..82a2511ec39 100644 --- a/src/mapi/mapi_abi.py +++ b/src/mapi/mapi_abi.py @@ -771,17 +771,13 @@ typedef int GLclampx; def parse_args(): printers = ['glapi', 'es1api', 'es2api', 'shared-glapi'] - modes = ['lib', 'app'] parser = OptionParser(usage='usage: %prog [options] ') parser.add_option('-p', '--printer', dest='printer', help='printer to use: %s' % (", ".join(printers))) - parser.add_option('-m', '--mode', dest='mode', - help='target user: %s' % (", ".join(modes))) options, args = parser.parse_args() - if not args or options.printer not in printers or \ - options.mode not in modes: + if not args or options.printer not in printers: parser.print_help() sys.exit(1) @@ -804,8 +800,7 @@ def main(): abi_sanity_check(entries) printer = printers[options.printer](entries) - if options.mode == 'lib': - printer.output_for_lib() + printer.output_for_lib() if __name__ == '__main__': main() -- cgit v1.2.3