Skip to content

Commit 35608c6

Browse files
committed
Remove annotated_dump function from report
This function was only used by the --dump option. Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 2c7fa7e commit 35608c6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

codebasin/report.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"""
66

77
import itertools as it
8-
import json
98
import logging
109
import warnings
1110

@@ -14,17 +13,6 @@
1413
log = logging.getLogger("codebasin")
1514

1615

17-
def annotated_dump(output_file, state):
18-
outlist = []
19-
for fname in state.get_filenames():
20-
source_tree = state.get_tree(fname)
21-
node_associations = state.get_map(fname)
22-
outlist.append(source_tree.root.to_json(node_associations))
23-
24-
with open(output_file, "w") as fp:
25-
fp.write(json.dumps(outlist, indent=2))
26-
27-
2816
def extract_platforms(setmap):
2917
"""
3018
Extract a list of unique platforms from a set map

0 commit comments

Comments
 (0)