linter: Remove dead code

There is *always* a `Line` element at the end of file, even if the
newline character (`\n`) is missing.
pull/12/head
Adrien Vergé 9 years ago
parent 6061a2c4cc
commit 7be5867675

@ -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:

Loading…
Cancel
Save