Merge pull request #529 from Emilv2/unused_imports

Remove unused imports and unused code
This commit is contained in:
Jeremiah Leary 2021-03-10 08:01:49 -06:00 committed by GitHub
commit 9ba368de9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 0 additions and 64 deletions

View File

@ -2,7 +2,6 @@ from setuptools import setup
from setuptools import find_packages
### Implement Version information
import subprocess
import os
from vsg import version

View File

@ -2,8 +2,6 @@
import argparse
import sys
import os
import glob
from . import vhdlFile

View File

@ -4,8 +4,6 @@ from vsg import parser
from vsg import token
from vsg import violation
from vsg.token.ieee.std_logic_1164 import function
from vsg.vhdlFile import utils
lIfBoundingTokens = [token.if_statement.if_keyword, token.if_statement.then_keyword]

View File

@ -4,8 +4,6 @@ from vsg import parser
from vsg import token
from vsg import violation
from vsg.token.ieee.std_logic_1164 import function
from vsg.vhdlFile import utils
oStart = token.process_statement.begin_keyword

View File

@ -4,8 +4,6 @@ from vsg import parser
from vsg import token
from vsg import violation
from vsg.token.ieee.std_logic_1164 import function
from vsg.vhdlFile import utils
lIfBoundingTokens = [token.if_statement.if_keyword, token.if_statement.then_keyword]

View File

@ -1,11 +1,8 @@
from vsg import parser
from vsg import rule
from vsg import severity
from vsg import violation
from vsg.vhdlFile import utils
class number_of_lines_between_tokens(rule.Rule):
'''

View File

@ -6,8 +6,6 @@ from vsg import parser
from vsg import token
from vsg import violation
from vsg.token.ieee.std_logic_1164 import function
from vsg.vhdlFile import utils
lIfBoundingTokens = [token.if_statement.if_keyword, token.if_statement.then_keyword]

View File

@ -1,6 +1,5 @@
from vsg import rule
from vsg import utils
from vsg import violation
lKeywords = []

View File

@ -6,7 +6,6 @@ from vsg.rules import library
from vsg.rules import entity
from vsg.rules import port
from vsg import vhdlFile
from vsg.tests import utils
# Read in test file used for all tests

View File

@ -6,12 +6,7 @@ import os
import unittest
from vsg import __main__
from vsg import rule_list
from vsg import severity
from vsg import vhdlFile
from vsg import parser
from vsg.tests import utils
sFileName = 'context_classification_test_input.vhd'
sFixedFileName = 'context_classification_test_input.fixed.vhd'

View File

@ -5,9 +5,6 @@ import unittest
from vsg import vhdlFile
from vsg.tests import utils
from vsg.token import concurrent_procedure_call_statement as token
from vsg.token import procedure_call
sTestDir = os.path.join(os.path.dirname(__file__), 'concurrent_statement')
lFile, eError =vhdlFile.utils.read_vhdlfile(os.path.join(sTestDir, 'classification_test_input.vhd'))

View File

@ -1,9 +1,6 @@
import unittest
from unittest import mock
import subprocess
import os
from vsg.tests import utils
from vsg.__main__ import read_configuration_files
def get_index_of_dictionary_in_list(lList, sKey):

View File

@ -1,12 +1,5 @@
import unittest
from unittest import mock
import subprocess
import os
from tempfile import TemporaryFile
from vsg.tests import utils
from vsg import version
class command_line_args():
''' This is used as an input into the version command.'''

View File

@ -1,20 +0,0 @@
from vsg import parser
class simple_expression(parser.simple_expression):
'''
unique_id = range : simple_expression
'''
def __init__(self, sString):
parser.simple_expression.__init__(self, sString)
class direction(parser.direction):
'''
unique_id = range : direction
'''
def __init__(self, sString):
parser.direction.__init__(self, sString)

View File

@ -1,8 +1,4 @@
from vsg.token import file_open_information as token
from vsg.vhdlFile import utils
from vsg.vhdlFile.classify import expression

View File

@ -4,7 +4,6 @@ from vsg import parser
from vsg.vhdlFile.extract import tokens
import bisect
import copy
def get_line_preceeding_line(iLine, lAllTokens, iNumLines, oTokenMap, bSkipComments=False):

View File

@ -1,6 +1,4 @@
from vsg.vhdlFile import vhdlFile as token_class
from vsg.vhdlFile.extract import tokens

View File

@ -1,8 +1,5 @@
from vsg import parser
from vsg.vhdlFile.extract import tokens
from vsg.vhdlFile.extract import utils
def get_tokens_bounded_by_tokens_if_token_is_between_them(oStart, oEnd, oToken, lAllObjects, oTokenMap):