Skip to content

Commit

Permalink
Remove as it wasn't being use
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Conte Mac Donell committed Nov 23, 2015
1 parent a24711f commit 377e094
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/ibunfuck.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,6 @@ class UnfuckPatch(object):
def __init__(self, path):
self.repository = git.Repo(path)

def _clear_undo(self, undo, patch):
has_changes = False
for i, patch_piece in enumerate(patch):
for j, hunk in enumerate(patch_piece[::-1]):
if not all(p(hunk) for p in self.processors):
continue

del undo[i][len(patch_piece) - j - 1]

has_changes = has_changes or len(undo[i]) > 0

return has_changes

def _clear_patch(self, patch, processors):
has_changes = False
for i, patch_piece in enumerate(patch):
Expand Down

0 comments on commit 377e094

Please sign in to comment.