Skip to content

Commit 2c7fa7e

Browse files
committed
Remove --dump parsing and handling from codebasin
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 2a834ac commit 2c7fa7e

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

bin/codebasin

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ def main():
9393
+ "May be specified multiple times. "
9494
+ "If not specified, all reports will be generated.",
9595
)
96-
deprecated_args.add_argument(
97-
"-d",
98-
"--dump",
99-
dest="dump",
100-
metavar="<file.json>",
101-
action="store",
102-
help="Dump out annotated platform/parsing tree to <file.json>.",
103-
)
10496
parser.add_argument(
10597
"-x",
10698
"--exclude",
@@ -140,13 +132,6 @@ def main():
140132
max(1, logging.WARNING - 10 * (args.verbose - args.quiet)),
141133
)
142134

143-
# Warnings for deprecated functionality with no planned replacement.
144-
if args.dump:
145-
warnings.warn(
146-
"--dump will be removed in a future release.",
147-
DeprecationWarning,
148-
)
149-
150135
# If no specific report was specified, generate all reports.
151136
# Handled here to prevent "all" always being in the list.
152137
if len(args.reports) == 0:
@@ -249,15 +234,6 @@ def main():
249234
platform_mapper = PlatformMapper(codebase)
250235
setmap = platform_mapper.walk(state)
251236

252-
if args.dump:
253-
if util.ensure_json(args.dump):
254-
report.annotated_dump(args.dump, state)
255-
else:
256-
logging.getLogger("codebasin").warning(
257-
"Output path for annotation dump does not end with .json: "
258-
f"'{args.dump}'. Skipping dump.",
259-
)
260-
261237
def report_enabled(name):
262238
if "all" in args.reports:
263239
return True

0 commit comments

Comments
 (0)