linter: Remove dead code

There is *always* a `Line` element at the end of file, even if the
newline character (`\n`) is missing.
This commit is contained in:
Adrien Vergé
2016-06-27 21:45:21 +02:00
parent 6061a2c4cc
commit 7be5867675

View File

@@ -157,12 +157,6 @@ def get_costemic_problems(buffer, conf):
disabled_for_next_line = DisableLineDirective()
cache = []
# If no new line at the end of file, the cache is not empty
for problem in cache:
if not (disabled_for_line.is_disabled_by_directive(problem) or
disabled.is_disabled_by_directive(problem)):
yield problem
def get_syntax_error(buffer):
try: