Browse Source

Remove unneeded handlers

Popov72 5 năm trước cách đây
mục cha
commit
fe678ae7e7

+ 0 - 2
ktx2Decoder/src/Transcoders/liteTranscoder.ts

@@ -56,8 +56,6 @@ export class LiteTranscoder extends Transcoder {
             textureView.set(encodedData);
 
             return transcoder.transcode(nBlocks) === 0 ? textureView.slice() : null;
-        }, (reason) => {
-            throw new Error(reason);
         });
     }
 }

+ 0 - 2
ktx2Decoder/src/Transcoders/mscTranscoder.ts

@@ -98,8 +98,6 @@ export class MSCTranscoder extends Transcoder {
             }
 
             return null;
-        }, (reason) => {
-            throw new Error(reason);
         });
     }
 }