diff dwt/internal/image/PngLzBlockReader.d @ 6:b903c16b6f48

Removed throws decls
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:10:03 +0200
parents 1a8b3cb347e0
children e831403a80a9
line wrap: on
line diff
--- a/dwt/internal/image/PngLzBlockReader.d	Wed Aug 27 14:02:31 2008 +0200
+++ b/dwt/internal/image/PngLzBlockReader.d	Wed Aug 27 14:10:03 2008 +0200
@@ -64,7 +64,7 @@
     window = new byte[windowSize];
 }   
 
-void readNextBlockHeader() throws IOException {
+void readNextBlockHeader() {
     isLastBlock = stream.getNextIdatBit() !is 0;
     compressionType = (byte)(stream.getNextIdatBits(2) & 0xFF);
     if (compressionType > 2) stream.error();    
@@ -83,7 +83,7 @@
     }
 }
 
-byte getNextByte() throws IOException {
+byte getNextByte() {
     if (compressionType is UNCOMPRESSED) {
         if (uncompressedBytesRemaining is 0) {
             readNextBlockHeader();
@@ -103,7 +103,7 @@
     }
 }
 
-private void assertBlockAtEnd() throws IOException {
+private void assertBlockAtEnd() {
     if (compressionType is UNCOMPRESSED) {
         if (uncompressedBytesRemaining > 0) stream.error();
     } else if (copyBytesRemaining > 0 ||
@@ -112,7 +112,7 @@
         stream.error();     
     }
 }
-void assertCompressedDataAtEnd() throws IOException {
+void assertCompressedDataAtEnd() {
     assertBlockAtEnd();     
     while (!isLastBlock) {
         readNextBlockHeader();
@@ -120,7 +120,7 @@
     }   
 }
 
-private byte getNextCompressedByte() throws IOException {
+private byte getNextCompressedByte() {
     if (copyBytesRemaining > 0) {
         byte value = window[copyIndex];
         window[windowIndex] = value;