From 938e6d5b038426cf881e433040b16803d82288a3 Mon Sep 17 00:00:00 2001 From: Tim Hutt Date: Tue, 29 Oct 2024 21:11:51 +0000 Subject: [PATCH 1/2] Remove unused imports Remove unused Python import statements. --- c_utils.py | 6 ------ chisel_utils.py | 8 -------- go_utils.py | 6 ------ rust_utils.py | 8 -------- sverilog_utils.py | 7 ------- 5 files changed, 35 deletions(-) diff --git a/c_utils.py b/c_utils.py index cff33dd8..78ed0e5c 100644 --- a/c_utils.py +++ b/c_utils.py @@ -1,12 +1,6 @@ -import collections -import glob import logging import os import pprint -import re -import sys - -import yaml # from shared_utils import overlaps, overlap_allowed, extension_overlap_allowed, instruction_overlap_allowed, process_enc_line, same_base_isa, add_segmented_vls_insn, expand_nf_field from shared_utils import * diff --git a/chisel_utils.py b/chisel_utils.py index 957e4f8a..0943584d 100644 --- a/chisel_utils.py +++ b/chisel_utils.py @@ -1,13 +1,5 @@ -import collections -import copy -import glob import logging -import os import pprint -import re -import sys - -import yaml from constants import * diff --git a/go_utils.py b/go_utils.py index 1f4c94bb..ed47441f 100644 --- a/go_utils.py +++ b/go_utils.py @@ -1,13 +1,7 @@ -import collections -import glob import logging -import os import pprint -import re import sys -import yaml - # from shared_utils import overlaps, overlap_allowed, extension_overlap_allowed, instruction_overlap_allowed, process_enc_line, same_base_isa, add_segmented_vls_insn, expand_nf_field from shared_utils import * diff --git a/rust_utils.py b/rust_utils.py index 19a47b95..68e0c8cd 100644 --- a/rust_utils.py +++ b/rust_utils.py @@ -1,13 +1,5 @@ -import collections -import copy -import glob import logging -import os import pprint -import re -import sys - -import yaml from constants import * diff --git a/sverilog_utils.py b/sverilog_utils.py index 1fe20680..89163137 100644 --- a/sverilog_utils.py +++ b/sverilog_utils.py @@ -1,12 +1,5 @@ -import collections -import glob import logging -import os import pprint -import re -import sys - -import yaml # from shared_utils import overlaps, overlap_allowed, extension_overlap_allowed, instruction_overlap_allowed, process_enc_line, same_base_isa, add_segmented_vls_insn, expand_nf_field from shared_utils import * From 14d6674bed2c6f0967872be7f4588f64134ebaa4 Mon Sep 17 00:00:00 2001 From: Jay Dev Jha Date: Wed, 30 Oct 2024 15:22:09 +0530 Subject: [PATCH 2/2] Remove commented out import lines Signed-off-by: Jay Dev Jha --- c_utils.py | 1 - go_utils.py | 1 - sverilog_utils.py | 1 - 3 files changed, 3 deletions(-) diff --git a/c_utils.py b/c_utils.py index 78ed0e5c..40fa4cb4 100644 --- a/c_utils.py +++ b/c_utils.py @@ -2,7 +2,6 @@ import os import pprint -# from shared_utils import overlaps, overlap_allowed, extension_overlap_allowed, instruction_overlap_allowed, process_enc_line, same_base_isa, add_segmented_vls_insn, expand_nf_field from shared_utils import * pp = pprint.PrettyPrinter(indent=2) diff --git a/go_utils.py b/go_utils.py index ed47441f..9815e702 100644 --- a/go_utils.py +++ b/go_utils.py @@ -2,7 +2,6 @@ import pprint import sys -# from shared_utils import overlaps, overlap_allowed, extension_overlap_allowed, instruction_overlap_allowed, process_enc_line, same_base_isa, add_segmented_vls_insn, expand_nf_field from shared_utils import * pp = pprint.PrettyPrinter(indent=2) diff --git a/sverilog_utils.py b/sverilog_utils.py index 89163137..ff116ccb 100644 --- a/sverilog_utils.py +++ b/sverilog_utils.py @@ -1,7 +1,6 @@ import logging import pprint -# from shared_utils import overlaps, overlap_allowed, extension_overlap_allowed, instruction_overlap_allowed, process_enc_line, same_base_isa, add_segmented_vls_insn, expand_nf_field from shared_utils import * pp = pprint.PrettyPrinter(indent=2)