Removed useless write functions.

This commit is contained in:
Cédric Bonhomme 2017-02-22 08:41:20 +01:00
parent 39855a2008
commit c0669e0f7a
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
3 changed files with 0 additions and 25 deletions

View file

@ -125,11 +125,3 @@ def reveal(input_image_file):
return "".join(bitab)[len(str(limit))+1:] return "".join(bitab)[len(str(limit))+1:]
img.close() img.close()
return "" return ""
def write(image, output_image_file):
try:
image.save(output_image_file)
except Exception as e:
print(e)
finally:
image.close()

View file

@ -120,9 +120,3 @@ def reveal(input_image_file, generator):
return "".join(bitab)[len(str(limit))+1:] return "".join(bitab)[len(str(limit))+1:]
return "" return ""
def write(image, output_image_file):
try:
image.save(output_image_file)
except Exception as e:
print(e)

View file

@ -84,14 +84,3 @@ def reveal(input_image_file):
index += 1 index += 1
img.close() img.close()
return message return message
def write(image, output_image_file):
"""
"""
try:
image.save(output_image_file)
except Exception as e:
# If hide() returns an error (Too long message).
print(e)
finally:
image.close()