From cccddb2dbd7993c8a82f2aa1fe00dccd363a9783 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 23 Nov 2026 18:39:39 +0100 Subject: Remove fallback, not needed --- tools/gen_class.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tools/gen_class.py') diff --git a/tools/gen_class.py b/tools/gen_class.py index b52871e..ac88bdc 100755 --- a/tools/gen_class.py +++ b/tools/gen_class.py @@ -32,7 +32,7 @@ needed. Usage: python3 gen_class.py --scan-jars --def-jars --out - [--fallback-jars ] [--report ] [--no-log] + [--report ] [--no-log] """ import argparse @@ -723,7 +723,6 @@ def main(): ap = argparse.ArgumentParser() ap.add_argument("--scan-jars", required=True) ap.add_argument("--def-jars", required=True) - ap.add_argument("--fallback-jars", default=None) ap.add_argument("--out", required=True) ap.add_argument("--report", default=None) ap.add_argument("--exclude", default=None, @@ -762,11 +761,10 @@ def main(): if ("." in s and "/" not in s) else s) scan_jars = read_list(args.scan_jars) def_jars = read_list(args.def_jars) - fb_jars = read_list(args.fallback_jars) if args.fallback_jars else [] # defs: internal name -> (jar, info) (first jar wins) defs = {} - for jar in def_jars + fb_jars: + for jar in def_jars: if not jar or not os.path.exists(jar): print(f"warn: missing def jar {jar}", file=sys.stderr) continue -- cgit v1.3.1