@@ -93,14 +93,6 @@ def main():
93
93
+ "May be specified multiple times. "
94
94
+ "If not specified, all reports will be generated." ,
95
95
)
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
- )
104
96
parser .add_argument (
105
97
"-x" ,
106
98
"--exclude" ,
@@ -140,13 +132,6 @@ def main():
140
132
max (1 , logging .WARNING - 10 * (args .verbose - args .quiet )),
141
133
)
142
134
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
-
150
135
# If no specific report was specified, generate all reports.
151
136
# Handled here to prevent "all" always being in the list.
152
137
if len (args .reports ) == 0 :
@@ -249,15 +234,6 @@ def main():
249
234
platform_mapper = PlatformMapper (codebase )
250
235
setmap = platform_mapper .walk (state )
251
236
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
-
261
237
def report_enabled (name ):
262
238
if "all" in args .reports :
263
239
return True
0 commit comments