Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
XenHat authored Oct 21, 2017
1 parent 121d4c5 commit cb91fad
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,6 @@ def run(self, cmd, code):
match = p.match(tokens[0])
number = int(match.group(2))
# print("number: '{0}'".format(number))
# laststdin = getLastStdin(preproc_bank, number)
# lastline = getLastLine(preproc_bank, laststdin)
result = getLastOffset(preproc_bank, number)
offset = result[0]
# print("Offset: {0}".format(offset))
Expand All @@ -275,7 +273,6 @@ def run(self, cmd, code):
new_line = re.sub(str(number), tokminoff, iter_line)
if result[1] != '"<stdin>"':
index = getLastStdin(preproc_bank, number)
# assert index != -1
new_number = preproc_bank[index + 1].mcpp_in_line + 1
offset = getLastOffset(preproc_bank, new_number)[0]
tokminoff = str(new_number - int(offset))
Expand Down

0 comments on commit cb91fad

Please sign in to comment.