diff --git a/stegano/lsb/lsb.py b/stegano/lsb/lsb.py index b9a07b4..60212a9 100755 --- a/stegano/lsb/lsb.py +++ b/stegano/lsb/lsb.py @@ -125,11 +125,3 @@ def reveal(input_image_file): return "".join(bitab)[len(str(limit))+1:] img.close() return "" - -def write(image, output_image_file): - try: - image.save(output_image_file) - except Exception as e: - print(e) - finally: - image.close() diff --git a/stegano/lsbset/lsbset.py b/stegano/lsbset/lsbset.py index eac6ad9..e9c0600 100644 --- a/stegano/lsbset/lsbset.py +++ b/stegano/lsbset/lsbset.py @@ -120,9 +120,3 @@ def reveal(input_image_file, generator): return "".join(bitab)[len(str(limit))+1:] return "" - -def write(image, output_image_file): - try: - image.save(output_image_file) - except Exception as e: - print(e) diff --git a/stegano/red/red.py b/stegano/red/red.py index 0edd480..f75b5ad 100755 --- a/stegano/red/red.py +++ b/stegano/red/red.py @@ -84,14 +84,3 @@ def reveal(input_image_file): index += 1 img.close() 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()