Skip to content

Commit

Permalink
Removed unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 2, 2015
1 parent e9a6a96 commit 560774e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions PIL/ImageMorph.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ def apply(self, image):

if image.mode != 'L':
raise Exception('Image must be binary, meaning it must use mode L')
return
outimage = Image.new(image.mode, image.size, None)
count = _imagingmorph.apply(
bytes(self.lut), image.im.id, outimage.im.id)
Expand All @@ -217,7 +216,6 @@ def match(self, image):

if image.mode != 'L':
raise Exception('Image must be binary, meaning it must use mode L')
return
return _imagingmorph.match(bytes(self.lut), image.im.id)

def get_on_pixels(self, image):
Expand All @@ -228,7 +226,6 @@ def get_on_pixels(self, image):

if image.mode != 'L':
raise Exception('Image must be binary, meaning it must use mode L')
return
return _imagingmorph.get_on_pixels(image.im.id)

def load_lut(self, filename):
Expand Down

0 comments on commit 560774e

Please sign in to comment.