Removed unreachable code

This commit is contained in:
Andrew Murray 2015-12-02 16:29:01 +11:00
parent e9a6a96053
commit 560774e3e0

View File

@ -200,7 +200,6 @@ class MorphOp(object):
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)
@ -217,7 +216,6 @@ class MorphOp(object):
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):
@ -228,7 +226,6 @@ class MorphOp(object):
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):