diff --git a/utils/checkpackagelib/lib_hash.py b/utils/checkpackagelib/lib_hash.py index 10b27482bc..c4d055ee22 100644 --- a/utils/checkpackagelib/lib_hash.py +++ b/utils/checkpackagelib/lib_hash.py @@ -17,22 +17,6 @@ def _empty_line_or_comment(text): return text.strip() == "" or text.startswith("#") -class HashFilename(_CheckFunction): - def check_line(self, lineno, text): - if _empty_line_or_comment(text): - return - - fields = text.split() - if len(fields) < 3: - return - - if '/' in fields[2]: - return ["{}:{}: use filename without directory component" - " ({}#adding-packages-hash)" - .format(self.filename, lineno, self.url_to_manual), - text] - - class HashNumberOfFields(_CheckFunction): def check_line(self, lineno, text): if _empty_line_or_comment(text):